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.DLATREG.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.DLATREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006894/0.0006896, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1009, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5224/0.6233, allocations: 77.79 MB / 386.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.6237, allocations: 70.06 kB / 386.4 MB, free: 15.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.107/0.7308, allocations: 26.64 MB / 413 MB, free: 9.504 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.7308, allocations: 0 / 413 MB, free: 9.504 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.673e-05/0.7309, allocations: 7.594 kB / 413 MB, free: 9.504 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.001442/0.7323, allocations: 1.134 MB / 414.2 MB, free: 8.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.7324, allocations: 7.688 kB / 414.2 MB, free: 8.523 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.7326, allocations: 62.78 kB / 414.2 MB, free: 8.477 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.7329, allocations: 85.78 kB / 414.3 MB, free: 8.434 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007092/0.7336, allocations: 408.3 kB / 414.7 MB, free: 8.137 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.389e-05/0.7336, allocations: 26.73 kB / 414.8 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.675e-05/0.7338, allocations: 27.14 kB / 414.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.7349, allocations: 0.4887 MB / 415.3 MB, free: 7.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.735, allocations: 0 / 415.3 MB, free: 7.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.588e-05/0.7351, allocations: 15.59 kB / 415.3 MB, free: 7.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.7351, allocations: 0 / 415.3 MB, free: 7.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008393/0.7359, allocations: 370.5 kB / 415.6 MB, free: 7.914 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.738, allocations: 0.9228 MB / 416.6 MB, free: 7.422 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.7391, allocations: 0.5031 MB / 417.1 MB, free: 7.328 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.7391, allocations: 7.891 kB / 417.1 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.7403, allocations: 0.6318 MB / 417.7 MB, free: 7.016 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.92e-06/0.7403, allocations: 0 / 417.7 MB, free: 7.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.003439/0.7438, allocations: 1.753 MB / 419.5 MB, free: 6.234 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.744, allocations: 283 kB / 419.7 MB, free: 5.945 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002125/0.7461, allocations: 1.026 MB / 420.8 MB, free: 5.512 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.7464, allocations: 40.2 kB / 420.8 MB, free: 5.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.7465, allocations: 190.6 kB / 421 MB, free: 5.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.7467, allocations: 76.89 kB / 421.1 MB, free: 5.277 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.686e-05/0.7468, allocations: 11.25 kB / 421.1 MB, free: 5.277 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.872e-05/0.7468, allocations: 326.6 kB / 421.4 MB, free: 4.957 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008106/0.7477, allocations: 346.3 kB / 421.7 MB, free: 4.898 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007734/0.7484, allocations: 378.5 kB / 422.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007482/0.7492, allocations: 498.4 kB / 422.6 MB, free: 4.531 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.7492, allocations: 0 / 422.6 MB, free: 4.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00217/0.7514, allocations: 1.09 MB / 423.7 MB, free: 4.145 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/0.7516, allocations: 248.6 kB / 423.9 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.7516, allocations: 0 / 423.9 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.7517, allocations: 0 / 423.9 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.442e-05/0.7517, allocations: 3.812 kB / 423.9 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.7517, allocations: 8.016 kB / 423.9 MB, free: 3.898 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000539/0.7523, allocations: 46.62 kB / 424 MB, free: 3.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.7525, allocations: 132.5 kB / 424.1 MB, free: 3.863 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.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.001283/0.7538, allocations: 0.7661 MB / 424.9 MB, free: 3.371 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.754, allocations: 86.25 kB / 425 MB, free: 3.332 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003501/0.7544, allocations: 146.6 kB / 425.1 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.7544, allocations: 4 kB / 425.1 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.7544, allocations: 3.906 kB / 425.1 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.7544, allocations: 3.953 kB / 425.1 MB, free: 3.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00357/0.758, allocations: 1.946 MB / 427.1 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.758, allocations: 0 / 427.1 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.027e-05/0.7581, allocations: 3.984 kB / 427.1 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.7581, allocations: 4 kB / 427.1 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-05/0.7582, allocations: 34.58 kB / 427.1 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.7582, allocations: 7.922 kB / 427.1 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.7582, allocations: 4 kB / 427.1 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.7608, allocations: 1.369 MB / 428.5 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/0.7624, allocations: 0.5627 MB / 429 MB, free: 1.516 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002739/0.7627, allocations: 58.78 kB / 429.1 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.7633, allocations: 34.31 kB / 429.1 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005877/0.7639, allocations: 241.6 kB / 429.4 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002075/0.7641, allocations: 133.9 kB / 429.5 MB, free: 1.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001946/0.7661, allocations: 0.8576 MB / 430.4 MB, free: 1.055 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.7661, allocations: 0 / 430.4 MB, free: 1.055 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008833/0.767, allocations: 120.3 kB / 430.5 MB, free: 1.055 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.003248/0.7703, allocations: 2.005 MB / 432.5 MB, free: 15.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.7732, allocations: 1.53 MB / 434 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.7733, allocations: 0 / 434 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001916/0.7752, allocations: 1.146 MB / 435.2 MB, free: 14.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.7772, allocations: 271.7 kB / 435.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.7901, allocations: 4.882 MB / 440.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/0.7914, allocations: 1.027 MB / 441.3 MB, free: 9.504 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.7916, allocations: 71.41 kB / 441.4 MB, free: 9.434 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7916, allocations: 0 / 441.4 MB, free: 9.434 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.845/3.636, allocations: 8.855 MB / 450.3 MB, free: 448 kB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat