Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL.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.DLATREGL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.724/1.724, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005263/0.0005264, allocations: 12 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08256/0.08314, allocations: 38.75 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3446/0.4278, allocations: 72.52 MB / 344.6 MB, free: 300 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.4281, allocations: 74.2 kB / 344.7 MB, free: 260 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1138/0.542, allocations: 33.1 MB / 377.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.542, allocations: 0 / 377.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.22e-05/0.5421, allocations: 16 kB / 377.8 MB, free: 4.719 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.001768/0.5439, allocations: 1.14 MB / 379 MB, free: 3.539 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/0.5439, allocations: 12.03 kB / 379 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001574/0.5441, allocations: 56.05 kB / 379 MB, free: 3.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.5443, allocations: 90.92 kB / 379.1 MB, free: 3.383 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008915/0.5452, allocations: 410.1 kB / 379.5 MB, free: 2.969 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.091e-05/0.5453, allocations: 22.62 kB / 379.6 MB, free: 2.953 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.5454, allocations: 23.56 kB / 379.6 MB, free: 2.934 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.5467, allocations: 496.8 kB / 380.1 MB, free: 2.559 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.5468, allocations: 4 kB / 380.1 MB, free: 2.555 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.5469, allocations: 11.98 kB / 380.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.5469, allocations: 4 kB / 380.1 MB, free: 2.539 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009349/0.5478, allocations: 359.2 kB / 380.4 MB, free: 2.297 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002274/0.5501, allocations: 0.9275 MB / 381.4 MB, free: 1.512 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.5512, allocations: 0.4897 MB / 381.8 MB, free: 1.211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.5512, allocations: 4.109 kB / 381.9 MB, free: 1.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.5525, allocations: 0.6337 MB / 382.5 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 2.745e-06/0.5525, allocations: 4 kB / 382.5 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.004115/0.5567, allocations: 1.723 MB / 384.2 MB, free: 14.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002304/0.5569, allocations: 279.3 kB / 384.5 MB, free: 14.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002336/0.5593, allocations: 1.023 MB / 385.5 MB, free: 13.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.5594, allocations: 41.7 kB / 385.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.5596, allocations: 142 kB / 385.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.5597, allocations: 75.16 kB / 385.8 MB, free: 13.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.676e-05/0.5598, allocations: 8 kB / 385.8 MB, free: 13.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.56, allocations: 346.8 kB / 386.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000925/0.5609, allocations: 339.7 kB / 386.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009092/0.5619, allocations: 362.4 kB / 386.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000893/0.5628, allocations: 496.7 kB / 387.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5628, allocations: 0 / 387.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002648/0.5654, allocations: 1.089 MB / 388.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002849/0.5658, allocations: 253 kB / 388.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.5658, allocations: 3.938 kB / 388.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.5658, allocations: 4 kB / 388.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.627e-05/0.5659, allocations: 3.938 kB / 388.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.5659, allocations: 4 kB / 388.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005451/0.5664, allocations: 39.81 kB / 388.7 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002431/0.5667, allocations: 127.9 kB / 388.8 MB, free: 10.07 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: 36 ($PRE.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.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.001496/0.5682, allocations: 0.7602 MB / 389.6 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.5684, allocations: 98.86 kB / 389.7 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003572/0.5688, allocations: 139.5 kB / 389.8 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.5688, allocations: 4 kB / 389.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.5688, allocations: 0 / 389.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.5689, allocations: 0 / 389.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004247/0.5731, allocations: 1.931 MB / 391.7 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.5731, allocations: 0 / 391.7 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.009e-05/0.5732, allocations: 7.938 kB / 391.7 MB, free: 6.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.5732, allocations: 0 / 391.7 MB, free: 6.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.5733, allocations: 35.97 kB / 391.8 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.393e-06/0.5733, allocations: 4 kB / 391.8 MB, free: 6.941 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/0.5733, allocations: 4 kB / 391.8 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003115/0.5765, allocations: 1.357 MB / 393.1 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/0.578, allocations: 0.5581 MB / 393.7 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/0.5783, allocations: 59.95 kB / 393.7 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005225/0.5789, allocations: 35.97 kB / 393.8 MB, free: 4.848 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006661/0.5795, allocations: 231.8 kB / 394 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/0.5798, allocations: 135.9 kB / 394.1 MB, free: 4.488 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002017/0.5818, allocations: 0.8499 MB / 395 MB, free: 3.641 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5818, allocations: 3.938 kB / 395 MB, free: 3.637 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007184/0.5826, allocations: 120 kB / 395.1 MB, free: 3.52 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,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.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.0038/0.5864, allocations: 1.993 MB / 397.1 MB, free: 1.453 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.5894, allocations: 1.519 MB / 398.6 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.004e-06/0.5894, allocations: 0 / 398.6 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.5912, allocations: 1.148 MB / 399.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.593, allocations: 250.5 kB / 400 MB, free: 14.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.6044, allocations: 4.747 MB / 404.8 MB, free: 9.562 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.6057, allocations: 1.031 MB / 405.8 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002222/0.6059, allocations: 41.48 kB / 405.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.606, allocations: 71.42 kB / 405.9 MB, free: 8.398 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6061, allocations: 0 / 405.9 MB, free: 8.398 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05217/0.6582, allocations: 15.36 MB / 421.3 MB, free: 8.832 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000247/0.6585, allocations: 178.7 kB / 421.4 MB, free: 8.586 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.719/3.378, allocations: 0 / 421.4 MB, free: 8.586 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat