Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Blocks.Examples.Interaction1.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.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.867/1.867, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004196, allocations: 12 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09413/0.09459, allocations: 44.51 MB / 308.5 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4146/0.5093, allocations: 73.62 MB / 382.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.5096, allocations: 66.7 kB / 382.2 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03512/0.5448, allocations: 7.555 MB / 389.8 MB, free: 13.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5448, allocations: 0 / 389.8 MB, free: 13.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.5449, allocations: 11.94 kB / 389.8 MB, free: 13.82 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001107/0.546, allocations: 0.838 MB / 390.6 MB, free: 13.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.546, allocations: 7.719 kB / 390.6 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.911e-05/0.5461, allocations: 49.55 kB / 390.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.693e-05/0.5462, allocations: 34.97 kB / 390.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004387/0.5467, allocations: 286.6 kB / 391 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.5467, allocations: 13.72 kB / 391 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.5468, allocations: 18.19 kB / 391 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005669/0.5474, allocations: 284 kB / 391.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.5474, allocations: 0 / 391.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.767e-05/0.5475, allocations: 11.09 kB / 391.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.784e-05/0.5475, allocations: 7.047 kB / 391.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003536/0.5479, allocations: 146.5 kB / 391.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.549, allocations: 1.018 MB / 392.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004586/0.5495, allocations: 237.6 kB / 392.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.5495, allocations: 4 kB / 392.7 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006642/0.5502, allocations: 0.5333 MB / 393.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.615e-06/0.5502, allocations: 0 / 393.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001851/0.5521, allocations: 1.289 MB / 394.5 MB, free: 10.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/0.5523, allocations: 496.8 kB / 395 MB, free: 10.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/0.5527, allocations: 264.4 kB / 395.3 MB, free: 9.938 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/0.5528, allocations: 47.67 kB / 395.3 MB, free: 9.906 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.5529, allocations: 193.6 kB / 395.5 MB, free: 9.754 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.887e-05/0.553, allocations: 82.8 kB / 395.6 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-05/0.553, allocations: 10.25 kB / 395.6 MB, free: 9.711 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.01e-05/0.5531, allocations: 331.4 kB / 395.9 MB, free: 9.398 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/0.5534, allocations: 150.1 kB / 396.1 MB, free: 9.395 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.5538, allocations: 240.3 kB / 396.3 MB, free: 9.293 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004634/0.5543, allocations: 455.8 kB / 396.8 MB, free: 8.965 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.5543, allocations: 3.938 kB / 396.8 MB, free: 8.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001297/0.5556, allocations: 0.8096 MB / 397.6 MB, free: 8.582 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001321/0.5558, allocations: 299.1 kB / 397.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.5558, allocations: 0 / 397.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.771e-05/0.5559, allocations: 7.812 kB / 397.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.556, allocations: 19.72 kB / 397.9 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.556, allocations: 3.969 kB / 397.9 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/0.5563, allocations: 38.64 kB / 397.9 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.105e-05/0.5564, allocations: 27.14 kB / 398 MB, free: 8.25 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.y,integerTable.y,$PRE.integerTable.nextTime,integerTable.nextTime,$PRE.integerTable.index,integerTable.index,$whenCondition8,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,$whenCondition7,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$whenCondition6,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,stop.pre_reset[1],$whenCondition1,$whenCondition2,$whenCondition3,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,start.pre_reset[1],booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 10 * 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.0004444/0.5569, allocations: 405.5 kB / 398.4 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.55e-05/0.557, allocations: 42.8 kB / 398.4 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.157e-05/0.5571, allocations: 31.17 kB / 398.4 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.5571, allocations: 0 / 398.4 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.5571, allocations: 3.719 kB / 398.4 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.5571, allocations: 0 / 398.4 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.5582, allocations: 0.8083 MB / 399.2 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.5582, allocations: 7.891 kB / 399.2 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.384e-05/0.5583, allocations: 7.719 kB / 399.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.5583, allocations: 3.984 kB / 399.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.477e-05/0.5583, allocations: 18.72 kB / 399.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.5584, allocations: 3.781 kB / 399.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.5584, allocations: 0 / 399.3 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.5598, allocations: 0.9146 MB / 400.2 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.925e-05/0.5599, allocations: 108.2 kB / 400.3 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.5601, allocations: 29.2 kB / 400.3 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.5604, allocations: 30.48 kB / 400.4 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.5605, allocations: 22.91 kB / 400.4 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.375e-05/0.5606, allocations: 36.28 kB / 400.4 MB, free: 6.922 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000275/0.5609, allocations: 203.3 kB / 400.6 MB, free: 6.844 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5609, allocations: 0 / 400.6 MB, free: 6.844 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008863/0.5618, allocations: 159.8 kB / 400.8 MB, free: 6.824 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,start.reset[1],start.on,start.table.y,start.table.nextTime,start.table.index,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,stop.pre_reset[1],$whenCondition7,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 30 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition7,stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition4,$whenCondition6,stop.on,$whenCondition5,stop.pre_reset[1],stop.reset[1],start.table.y,start.table.nextTime,start.table.index,$whenCondition1,$whenCondition3,start.on,$whenCondition2,start.pre_reset[1],start.reset[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 3 * 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.002134/0.564, allocations: 1.79 MB / 402.6 MB, free: 5.656 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.5655, allocations: 0.9826 MB / 403.5 MB, free: 21.01 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.5655, allocations: 0 / 403.5 MB, free: 21.01 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007094/0.5662, allocations: 0.612 MB / 404.2 MB, free: 20.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.5666, allocations: 27.48 kB / 404.2 MB, free: 20.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00494/0.5715, allocations: 3.88 MB / 408.1 MB, free: 18.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.572, allocations: 0.7838 MB / 408.8 MB, free: 17.53 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.5722, allocations: 82.06 kB / 408.9 MB, free: 17.52 MB / 330.7 MB Notification: Performance of SimCode: time 1.463e-06/0.5722, allocations: 3.938 kB / 408.9 MB, free: 17.52 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.75/3.322, allocations: 5.646 MB / 414.6 MB, free: 15.79 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat