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.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_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.651/1.651, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003525, allocations: 12 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08085/0.08124, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3464/0.4277, allocations: 72.51 MB / 344.6 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.428, allocations: 76.08 kB / 344.7 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1128/0.5409, allocations: 33.11 MB / 377.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.5409, allocations: 0 / 377.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.387e-05/0.541, allocations: 8 kB / 377.8 MB, free: 5.328 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.001733/0.5427, allocations: 1.133 MB / 378.9 MB, free: 4.152 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.5428, allocations: 11.97 kB / 379 MB, free: 4.141 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.543, allocations: 55.42 kB / 379 MB, free: 4.086 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001974/0.5432, allocations: 94.92 kB / 379.1 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007959/0.544, allocations: 410.2 kB / 379.5 MB, free: 3.578 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.04e-05/0.5441, allocations: 22.8 kB / 379.5 MB, free: 3.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.5442, allocations: 27.81 kB / 379.6 MB, free: 3.539 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.5455, allocations: 493.7 kB / 380 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.5455, allocations: 0 / 380 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.699e-05/0.5456, allocations: 11.38 kB / 380 MB, free: 3.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.5457, allocations: 0 / 380 MB, free: 3.156 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009358/0.5466, allocations: 369 kB / 380.4 MB, free: 2.902 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.5487, allocations: 0.9183 MB / 381.3 MB, free: 2.129 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.5499, allocations: 0.4971 MB / 381.8 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.5499, allocations: 0 / 381.8 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.5512, allocations: 0.6405 MB / 382.5 MB, free: 1.262 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 2.775e-06/0.5512, allocations: 0 / 382.5 MB, free: 1.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.003813/0.5551, allocations: 1.721 MB / 384.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002212/0.5553, allocations: 283.3 kB / 384.5 MB, free: 15.24 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002284/0.5576, allocations: 1.015 MB / 385.5 MB, free: 14.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000183/0.5578, allocations: 41.69 kB / 385.5 MB, free: 14.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.558, allocations: 196.5 kB / 385.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.5582, allocations: 71.16 kB / 385.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.975e-05/0.5583, allocations: 15.98 kB / 385.8 MB, free: 13.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5584, allocations: 322.8 kB / 386.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009062/0.5593, allocations: 343.5 kB / 386.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009062/0.5603, allocations: 366.4 kB / 386.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000877/0.5612, allocations: 496.7 kB / 387.3 MB, free: 12.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5612, allocations: 4 kB / 387.3 MB, free: 12.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002524/0.5637, allocations: 1.074 MB / 388.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002551/0.564, allocations: 247.9 kB / 388.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.564, allocations: 0 / 388.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.5641, allocations: 3.938 kB / 388.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.598e-05/0.5641, allocations: 7.984 kB / 388.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.5641, allocations: 3.984 kB / 388.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005414/0.5647, allocations: 43.83 kB / 388.7 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002272/0.5649, allocations: 128 kB / 388.8 MB, free: 10.74 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.001451/0.5664, allocations: 0.7524 MB / 389.5 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.5666, allocations: 87.02 kB / 389.6 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004142/0.567, allocations: 147.5 kB / 389.8 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.5671, allocations: 4 kB / 389.8 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.5671, allocations: 0 / 389.8 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.5671, allocations: 3.984 kB / 389.8 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004054/0.5712, allocations: 1.935 MB / 391.7 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.5712, allocations: 4 kB / 391.7 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.942e-05/0.5713, allocations: 0 / 391.7 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.5713, allocations: 0 / 391.7 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.5714, allocations: 35.97 kB / 391.8 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.5714, allocations: 0 / 391.8 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.5714, allocations: 0 / 391.8 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003025/0.5744, allocations: 1.369 MB / 393.1 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/0.5759, allocations: 0.5504 MB / 393.7 MB, free: 5.621 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.5762, allocations: 63.94 kB / 393.7 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005357/0.5768, allocations: 39.81 kB / 393.8 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006531/0.5775, allocations: 231.8 kB / 394 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002282/0.5777, allocations: 131.9 kB / 394.1 MB, free: 5.164 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001965/0.5797, allocations: 0.8538 MB / 395 MB, free: 4.312 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5797, allocations: 0 / 395 MB, free: 4.312 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008088/0.5805, allocations: 120 kB / 395.1 MB, free: 4.195 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.003743/0.5843, allocations: 1.989 MB / 397.1 MB, free: 2.133 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00308/0.5874, allocations: 1.519 MB / 398.6 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.5875, allocations: 4.125 kB / 398.6 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001964/0.5895, allocations: 1.14 MB / 399.8 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001756/0.5913, allocations: 262.8 kB / 400 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.6027, allocations: 4.819 MB / 404.8 MB, free: 10.15 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/0.6039, allocations: 1.031 MB / 405.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.6041, allocations: 75.41 kB / 405.9 MB, free: 9.023 MB / 330.7 MB Notification: Performance of SimCode: time 1.663e-06/0.6041, allocations: 0 / 405.9 MB, free: 9.023 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.699/3.303, allocations: 8.809 MB / 414.7 MB, free: 72 kB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat