Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.631/1.631, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003798, allocations: 12 kB / 233.3 MB, free: 2.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08308/0.0835, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3417/0.4252, allocations: 72.78 MB / 344.9 MB, free: 0.668 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.4256, allocations: 72.08 kB / 345 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1019/0.5275, allocations: 29.98 MB / 374.9 MB, free: 7.574 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5276, allocations: 0 / 374.9 MB, free: 7.574 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.472e-05/0.5276, allocations: 16 kB / 375 MB, free: 7.559 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002367/0.53, allocations: 1.498 MB / 376.5 MB, free: 6.035 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.5301, allocations: 11.97 kB / 376.5 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001906/0.5303, allocations: 61.11 kB / 376.5 MB, free: 5.965 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002621/0.5305, allocations: 134.4 kB / 376.7 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.5316, allocations: 0.5103 MB / 377.2 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.434e-05/0.5317, allocations: 23.31 kB / 377.2 MB, free: 5.289 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.5318, allocations: 30.88 kB / 377.2 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.5334, allocations: 0.6164 MB / 377.8 MB, free: 4.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.5335, allocations: 3.953 kB / 377.8 MB, free: 4.789 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.431e-05/0.5336, allocations: 22.61 kB / 377.9 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.5336, allocations: 7.938 kB / 377.9 MB, free: 4.766 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.5348, allocations: 462.4 kB / 378.3 MB, free: 4.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.5374, allocations: 1.129 MB / 379.5 MB, free: 3.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.5388, allocations: 0.6899 MB / 380.1 MB, free: 3.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.5388, allocations: 4 kB / 380.1 MB, free: 3.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001537/0.5404, allocations: 0.7375 MB / 380.9 MB, free: 2.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 3.637e-06/0.5404, allocations: 4 kB / 380.9 MB, free: 2.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.004624/0.545, allocations: 2.105 MB / 383 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002948/0.5454, allocations: 325.7 kB / 383.3 MB, free: 352 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003435/0.5488, allocations: 1.473 MB / 384.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002431/0.5491, allocations: 49.69 kB / 384.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/0.5494, allocations: 256.9 kB / 385.1 MB, free: 14.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/0.5496, allocations: 79.14 kB / 385.2 MB, free: 14.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-05/0.5497, allocations: 15.98 kB / 385.2 MB, free: 14.49 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.5499, allocations: 322.8 kB / 385.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.5511, allocations: 443.8 kB / 385.9 MB, free: 13.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.5522, allocations: 478.1 kB / 386.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.5533, allocations: 0.5833 MB / 387 MB, free: 12.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.5534, allocations: 0 / 387 MB, free: 12.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003085/0.5564, allocations: 1.307 MB / 388.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003382/0.5568, allocations: 293.5 kB / 388.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.5568, allocations: 3.938 kB / 388.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.5569, allocations: 0 / 388.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.546e-05/0.5569, allocations: 4 kB / 388.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.5569, allocations: 0 / 388.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006626/0.5576, allocations: 47.94 kB / 388.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/0.5579, allocations: 140.1 kB / 388.8 MB, free: 10.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001886/0.5598, allocations: 0.9375 MB / 389.7 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/0.5601, allocations: 134.4 kB / 389.8 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005438/0.5606, allocations: 204.1 kB / 390 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.5606, allocations: 4 kB / 390 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5607, allocations: 4 kB / 390 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.5607, allocations: 0 / 390 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/0.5657, allocations: 2.338 MB / 392.4 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5657, allocations: 0 / 392.4 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.624e-05/0.5657, allocations: 0 / 392.4 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.5657, allocations: 4 kB / 392.4 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.5659, allocations: 35.97 kB / 392.4 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.195e-05/0.5659, allocations: 4 kB / 392.4 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5659, allocations: 0 / 392.4 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003584/0.5695, allocations: 1.642 MB / 394.1 MB, free: 5.184 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001687/0.5712, allocations: 0.6435 MB / 394.7 MB, free: 4.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002973/0.5715, allocations: 55.97 kB / 394.8 MB, free: 4.465 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000607/0.5721, allocations: 47.89 kB / 394.8 MB, free: 4.418 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/0.5732, allocations: 379.6 kB / 395.2 MB, free: 4.047 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002506/0.5734, allocations: 127.9 kB / 395.3 MB, free: 3.922 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002985/0.5764, allocations: 1.228 MB / 396.5 MB, free: 2.691 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.5765, allocations: 0 / 396.5 MB, free: 2.691 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009368/0.5774, allocations: 152 kB / 396.7 MB, free: 2.543 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004248/0.5817, allocations: 2.28 MB / 399 MB, free: 192 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003612/0.5853, allocations: 1.909 MB / 400.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5854, allocations: 0 / 400.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00229/0.5877, allocations: 1.436 MB / 402.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.5897, allocations: 296.4 kB / 402.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01562/0.6053, allocations: 6.854 MB / 409.4 MB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001417/0.6068, allocations: 1.176 MB / 410.6 MB, free: 4.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002623/0.607, allocations: 139.4 kB / 410.8 MB, free: 4.07 MB / 330.7 MB Notification: Performance of SimCode: time 1.683e-06/0.6071, allocations: 0 / 410.8 MB, free: 4.07 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.791/3.398, allocations: 12.7 MB / 423.5 MB, free: 7.172 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat