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.DLATREG.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.DLATREG,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.000356, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09052, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3687/0.4593, allocations: 72.48 MB / 344.6 MB, free: 1.367 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.4596, allocations: 67.59 kB / 344.7 MB, free: 1.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09742/0.5571, allocations: 26.57 MB / 371.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.5572, allocations: 0 / 371.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.606e-05/0.5572, allocations: 12 kB / 371.2 MB, free: 11.29 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002672/0.5599, allocations: 1.136 MB / 372.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/0.56, allocations: 12.03 kB / 372.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002595/0.5603, allocations: 53.8 kB / 372.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002879/0.5606, allocations: 90.97 kB / 372.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.5618, allocations: 410.7 kB / 372.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.5619, allocations: 19.86 kB / 372.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.5621, allocations: 23.94 kB / 373 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001897/0.564, allocations: 495.1 kB / 373.4 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.5641, allocations: 0 / 373.4 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.5642, allocations: 23.5 kB / 373.5 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.5643, allocations: 0 / 373.5 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.5655, allocations: 355.2 kB / 373.8 MB, free: 8.871 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.5679, allocations: 0.929 MB / 374.7 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.5691, allocations: 0.4969 MB / 375.2 MB, free: 7.777 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.5691, allocations: 8.047 kB / 375.2 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001348/0.5705, allocations: 0.6293 MB / 375.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 4.208e-06/0.5705, allocations: 0 / 375.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.003911/0.5744, allocations: 1.729 MB / 377.6 MB, free: 5.734 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002411/0.5747, allocations: 288.9 kB / 377.9 MB, free: 5.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/0.5771, allocations: 1.008 MB / 378.9 MB, free: 4.582 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002143/0.5773, allocations: 44.94 kB / 378.9 MB, free: 4.535 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.5775, allocations: 194 kB / 379.1 MB, free: 4.371 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.5777, allocations: 73.66 kB / 379.2 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.008e-05/0.5778, allocations: 11.98 kB / 379.2 MB, free: 4.297 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.578, allocations: 329.7 kB / 379.5 MB, free: 3.973 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009565/0.579, allocations: 334.4 kB / 379.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009593/0.58, allocations: 369.7 kB / 380.2 MB, free: 3.484 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.581, allocations: 497.9 kB / 380.7 MB, free: 2.984 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.5811, allocations: 4 kB / 380.7 MB, free: 2.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002781/0.5839, allocations: 1.074 MB / 381.8 MB, free: 1.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002763/0.5842, allocations: 247.8 kB / 382 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.5842, allocations: 0 / 382 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.5842, allocations: 0 / 382 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.008e-05/0.5843, allocations: 8.047 kB / 382 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.5843, allocations: 7.938 kB / 382 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005613/0.5849, allocations: 35.97 kB / 382.1 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.5851, allocations: 123.9 kB / 382.2 MB, free: 1.402 MB / 298.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: 36 ($PRE.dLATREG.delay.inertialDelaySensitive[2].y,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.001479/0.5866, allocations: 0.7646 MB / 383 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.5868, allocations: 86.97 kB / 383.1 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003804/0.5872, allocations: 147.6 kB / 383.2 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.5873, allocations: 7.984 kB / 383.2 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5873, allocations: 0 / 383.2 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.5873, allocations: 4 kB / 383.2 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004215/0.5915, allocations: 1.92 MB / 385.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.5916, allocations: 0 / 385.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.989e-05/0.5916, allocations: 4 kB / 385.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.5916, allocations: 3.984 kB / 385.1 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.925e-05/0.5917, allocations: 31.98 kB / 385.2 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.5917, allocations: 4 kB / 385.2 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.5917, allocations: 0 / 385.2 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/0.5948, allocations: 1.369 MB / 386.5 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.5962, allocations: 0.5542 MB / 387.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002623/0.5965, allocations: 63.95 kB / 387.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005184/0.597, allocations: 31.97 kB / 387.2 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006515/0.5977, allocations: 243.7 kB / 387.4 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002421/0.598, allocations: 127.9 kB / 387.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001945/0.5999, allocations: 0.8499 MB / 388.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5999, allocations: 0 / 388.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007175/0.6007, allocations: 120 kB / 388.5 MB, free: 10.85 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.003684/0.6044, allocations: 1.997 MB / 390.5 MB, free: 8.785 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002904/0.6073, allocations: 1.523 MB / 392 MB, free: 7.176 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.6073, allocations: 3.938 kB / 392 MB, free: 7.172 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.6092, allocations: 1.136 MB / 393.2 MB, free: 5.949 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.6109, allocations: 258.6 kB / 393.4 MB, free: 5.699 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.6222, allocations: 4.819 MB / 398.2 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.6234, allocations: 1.027 MB / 399.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.6236, allocations: 71.41 kB / 399.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.6236, allocations: 0 / 399.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.694/3.318, allocations: 8.81 MB / 408.2 MB, free: 6.73 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat