Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.4/2.4, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.357e-05/2.382e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3413, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.5201, allocations: 80.26 MB / 438.4 MB, free: 14.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.5204, allocations: 55.98 kB / 438.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009315/0.5297, allocations: 1.966 MB / 440.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5298, allocations: 0 / 440.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.5298, allocations: 4 kB / 440.4 MB, free: 12.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007233/0.5305, allocations: 0.5359 MB / 440.9 MB, free: 11.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.5306, allocations: 8.031 kB / 440.9 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.264e-05/0.5307, allocations: 23.8 kB / 441 MB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.5309, allocations: 173.6 kB / 441.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.531, allocations: 85.11 kB / 441.2 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.769e-05/0.5311, allocations: 12 kB / 441.2 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002367/0.5313, allocations: 63.97 kB / 441.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.5316, allocations: 117.6 kB / 441.4 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.5316, allocations: 8 kB / 441.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.5317, allocations: 4 kB / 441.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.5317, allocations: 3.953 kB / 441.4 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009053/0.5326, allocations: 0.5016 MB / 441.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.5329, allocations: 127.9 kB / 442 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.5331, allocations: 86.56 kB / 442.1 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.5332, allocations: 8 kB / 442.1 MB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005439/0.5337, allocations: 448.3 kB / 442.6 MB, free: 9.969 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.875e-06/0.5337, allocations: 0 / 442.6 MB, free: 9.969 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.000773/0.5345, allocations: 245.6 kB / 442.8 MB, free: 9.723 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.5347, allocations: 251.3 kB / 443.1 MB, free: 9.422 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.5349, allocations: 124.9 kB / 443.2 MB, free: 9.293 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.5349, allocations: 29.7 kB / 443.2 MB, free: 9.258 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.397e-05/0.535, allocations: 163 kB / 443.4 MB, free: 9.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.264e-05/0.5351, allocations: 35.52 kB / 443.4 MB, free: 9.062 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.702e-05/0.5351, allocations: 4 kB / 443.4 MB, free: 9.059 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.5353, allocations: 325 kB / 443.7 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.5354, allocations: 40 kB / 443.8 MB, free: 8.695 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.5356, allocations: 119.6 kB / 443.9 MB, free: 8.551 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/0.5358, allocations: 59.97 kB / 443.9 MB, free: 8.492 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5359, allocations: 4 kB / 443.9 MB, free: 8.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005923/0.5365, allocations: 217.4 kB / 444.2 MB, free: 8.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.5366, allocations: 152.5 kB / 444.3 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.5366, allocations: 4 kB / 444.3 MB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.5366, allocations: 0 / 444.3 MB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.5368, allocations: 15.95 kB / 444.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.5368, allocations: 4 kB / 444.3 MB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.537, allocations: 28.02 kB / 444.4 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.5371, allocations: 12 kB / 444.4 MB, free: 8.027 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * 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.0002799/0.5374, allocations: 262.1 kB / 444.6 MB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007566/0.5381, allocations: 289.5 kB / 444.9 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.577e-05/0.5382, allocations: 23.84 kB / 444.9 MB, free: 7.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.42e-05/0.5383, allocations: 12.58 kB / 444.9 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5383, allocations: 0 / 444.9 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.5383, allocations: 12 kB / 445 MB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.5383, allocations: 0 / 445 MB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00084/0.5392, allocations: 470.9 kB / 445.4 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.5392, allocations: 0 / 445.4 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.843e-05/0.5392, allocations: 0 / 445.4 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.5392, allocations: 7.953 kB / 445.4 MB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.5393, allocations: 8 kB / 445.4 MB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.5393, allocations: 0 / 445.4 MB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5393, allocations: 0 / 445.4 MB, free: 6.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008266/0.5401, allocations: 432.3 kB / 445.9 MB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-05/0.5402, allocations: 89 kB / 445.9 MB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.755e-05/0.5403, allocations: 16 kB / 446 MB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.5406, allocations: 19.98 kB / 446 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.5407, allocations: 15.98 kB / 446 MB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.5407, allocations: 12 kB / 446 MB, free: 6.266 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.183e-05/0.5408, allocations: 100.5 kB / 446.1 MB, free: 6.168 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5408, allocations: 0 / 446.1 MB, free: 6.168 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005086/0.5413, allocations: 56 kB / 446.2 MB, free: 6.113 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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.001384/0.5427, allocations: 1.128 MB / 447.3 MB, free: 4.949 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007493/0.5435, allocations: 465.4 kB / 447.7 MB, free: 4.434 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.5435, allocations: 8 kB / 447.7 MB, free: 4.426 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000508/0.5441, allocations: 389.6 kB / 448.1 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.5443, allocations: 16.19 kB / 448.1 MB, free: 3.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009844/0.5453, allocations: 314.3 kB / 448.5 MB, free: 3.625 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.5457, allocations: 0.7158 MB / 449.2 MB, free: 2.883 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.147e-05/0.5458, allocations: 31.42 kB / 449.2 MB, free: 2.852 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5458, allocations: 0 / 449.2 MB, free: 2.852 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.72/3.266, allocations: 2.363 MB / 451.6 MB, free: 500 kB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat