Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGL.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.954/1.954, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005557/0.0005557, allocations: 19.92 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1389, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4946/0.6336, allocations: 77.83 MB / 386.4 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.6339, allocations: 76.08 kB / 386.4 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1018/0.7357, allocations: 33.22 MB / 419.7 MB, free: 6.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7358, allocations: 0 / 419.7 MB, free: 6.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.724e-05/0.7358, allocations: 7.875 kB / 419.7 MB, free: 6.5 MB / 314.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.00144/0.7373, allocations: 1.132 MB / 420.8 MB, free: 5.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.7373, allocations: 11.62 kB / 420.8 MB, free: 5.52 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001475/0.7375, allocations: 61.36 kB / 420.9 MB, free: 5.473 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.7377, allocations: 88.25 kB / 421 MB, free: 5.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007044/0.7384, allocations: 412.3 kB / 421.4 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.336e-05/0.7385, allocations: 23.39 kB / 421.4 MB, free: 5.125 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.968e-05/0.7386, allocations: 26.94 kB / 421.4 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.7398, allocations: 0.4915 MB / 421.9 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.7398, allocations: 0 / 421.9 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.067e-05/0.7399, allocations: 17.92 kB / 421.9 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.7399, allocations: 0 / 421.9 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009228/0.7409, allocations: 362.6 kB / 422.3 MB, free: 4.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.7429, allocations: 0.9249 MB / 423.2 MB, free: 4.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.7439, allocations: 0.5037 MB / 423.7 MB, free: 4.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.744, allocations: 0 / 423.7 MB, free: 4.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.7452, allocations: 0.6406 MB / 424.3 MB, free: 4.004 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.297e-06/0.7452, allocations: 0 / 424.3 MB, free: 4.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.003341/0.7485, allocations: 1.747 MB / 426.1 MB, free: 3.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001804/0.7488, allocations: 284.8 kB / 426.4 MB, free: 2.938 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001995/0.7508, allocations: 1.029 MB / 427.4 MB, free: 2.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001767/0.751, allocations: 41.5 kB / 427.4 MB, free: 2.469 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.7511, allocations: 198.6 kB / 427.6 MB, free: 2.305 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.7513, allocations: 68.95 kB / 427.7 MB, free: 2.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.479e-05/0.7514, allocations: 7.75 kB / 427.7 MB, free: 2.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.082e-05/0.7515, allocations: 326.6 kB / 428 MB, free: 1.953 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009656/0.7524, allocations: 346.1 kB / 428.4 MB, free: 1.891 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.7536, allocations: 372 kB / 428.7 MB, free: 1.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.7546, allocations: 0.4949 MB / 429.2 MB, free: 1.523 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.7546, allocations: 0 / 429.2 MB, free: 1.523 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002983/0.7576, allocations: 1.094 MB / 430.3 MB, free: 1.129 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002381/0.7579, allocations: 244.5 kB / 430.6 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.7579, allocations: 3.984 kB / 430.6 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.758, allocations: 3.906 kB / 430.6 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.756e-05/0.758, allocations: 3.938 kB / 430.6 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.758, allocations: 3.719 kB / 430.6 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000703/0.7588, allocations: 42.12 kB / 430.6 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002362/0.759, allocations: 133.7 kB / 430.7 MB, free: 0.8555 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.001607/0.7606, allocations: 0.7651 MB / 431.5 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000267/0.7609, allocations: 89.56 kB / 431.6 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000469/0.7614, allocations: 155.8 kB / 431.7 MB, free: 248 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.7614, allocations: 0 / 431.7 MB, free: 248 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.7614, allocations: 4 kB / 431.8 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.7615, allocations: 0 / 431.8 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00536/0.7668, allocations: 1.939 MB / 433.7 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.7669, allocations: 3.844 kB / 433.7 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.267e-05/0.7669, allocations: 3.938 kB / 433.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.767, allocations: 0 / 433.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/0.7671, allocations: 30.92 kB / 433.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.7672, allocations: 7.922 kB / 433.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.7672, allocations: 7.875 kB / 433.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004058/0.7712, allocations: 1.37 MB / 435.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/0.7731, allocations: 0.5572 MB / 435.7 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003278/0.7734, allocations: 58.47 kB / 435.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000694/0.7742, allocations: 34.22 kB / 435.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007519/0.7749, allocations: 239.7 kB / 436 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/0.7752, allocations: 138.9 kB / 436.1 MB, free: 14.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002444/0.7777, allocations: 0.8568 MB / 437 MB, free: 13.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7777, allocations: 0 / 437 MB, free: 13.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001009/0.7787, allocations: 123.3 kB / 437.1 MB, free: 13.79 MB / 330.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.00492/0.7836, allocations: 2.014 MB / 439.1 MB, free: 12.01 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003948/0.7876, allocations: 1.53 MB / 440.7 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.7877, allocations: 0 / 440.7 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002381/0.7901, allocations: 1.144 MB / 441.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/0.7923, allocations: 250 kB / 442 MB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/0.8077, allocations: 4.882 MB / 446.9 MB, free: 4.133 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001562/0.8093, allocations: 1.031 MB / 448 MB, free: 3.078 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.8095, allocations: 71.42 kB / 448 MB, free: 3.008 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.8095, allocations: 0 / 448 MB, free: 3.008 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.7/3.51, allocations: 8.86 MB / 456.9 MB, free: 10 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat