Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.Interaction1.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.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.551/1.551, allocations: 171.2 MB / 186.8 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003606/0.0003607, allocations: 8 kB / 233.3 MB, free: 2.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07657/0.07697, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3285/0.4055, allocations: 68.26 MB / 340.4 MB, free: 5.172 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.4058, allocations: 69.91 kB / 340.4 MB, free: 5.137 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03695/0.4428, allocations: 7.478 MB / 347.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4428, allocations: 0 / 347.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.4429, allocations: 4 kB / 347.9 MB, free: 14.63 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001198/0.4441, allocations: 0.8249 MB / 348.7 MB, free: 13.72 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.4442, allocations: 16.03 kB / 348.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.914e-05/0.4442, allocations: 48.17 kB / 348.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.4444, allocations: 27.72 kB / 348.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.4448, allocations: 287.6 kB / 349.1 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.4449, allocations: 11.31 kB / 349.1 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.964e-05/0.4449, allocations: 19.94 kB / 349.1 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006568/0.4456, allocations: 290.5 kB / 349.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.4456, allocations: 7.922 kB / 349.4 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.728e-05/0.4457, allocations: 4 kB / 349.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.596e-05/0.4457, allocations: 4 kB / 349.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.4461, allocations: 148 kB / 349.6 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.4474, allocations: 0.9985 MB / 350.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.4479, allocations: 239.7 kB / 350.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.142e-05/0.448, allocations: 4 kB / 350.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007745/0.4487, allocations: 0.5166 MB / 351.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 3.126e-06/0.4488, allocations: 0 / 351.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.002258/0.451, allocations: 1.306 MB / 352.6 MB, free: 9.863 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002888/0.4513, allocations: 0.4892 MB / 353.1 MB, free: 9.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004225/0.4518, allocations: 263.6 kB / 353.4 MB, free: 9.043 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.233e-05/0.4519, allocations: 52.69 kB / 353.4 MB, free: 8.992 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.452, allocations: 198.5 kB / 353.6 MB, free: 8.828 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.747e-05/0.4521, allocations: 74.58 kB / 353.7 MB, free: 8.77 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.4522, allocations: 7.875 kB / 353.7 MB, free: 8.766 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.4523, allocations: 325.7 kB / 354 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.4527, allocations: 141 kB / 354.2 MB, free: 8.344 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000466/0.4532, allocations: 234.8 kB / 354.4 MB, free: 8.117 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005846/0.4538, allocations: 451.4 kB / 354.8 MB, free: 7.672 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.4538, allocations: 11.94 kB / 354.9 MB, free: 7.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001614/0.4554, allocations: 0.8233 MB / 355.7 MB, free: 6.891 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002046/0.4556, allocations: 292.1 kB / 356 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.4557, allocations: 4 kB / 356 MB, free: 6.547 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.4557, allocations: 4 kB / 356 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.4558, allocations: 23.55 kB / 356 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.4559, allocations: 7.953 kB / 356 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.4562, allocations: 31.75 kB / 356 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.832e-05/0.4562, allocations: 31.73 kB / 356.1 MB, free: 6.461 MB / 282.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: 52 ($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,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.0006107/0.4569, allocations: 389 kB / 356.4 MB, free: 6.062 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.457, allocations: 39.62 kB / 356.5 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.466e-05/0.4571, allocations: 29.36 kB / 356.5 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.4571, allocations: 8 kB / 356.5 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.4571, allocations: 0 / 356.5 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4571, allocations: 3.953 kB / 356.5 MB, free: 5.992 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.4584, allocations: 0.8033 MB / 357.3 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4585, allocations: 0 / 357.3 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-05/0.4585, allocations: 7.938 kB / 357.3 MB, free: 5.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.4585, allocations: 4 kB / 357.3 MB, free: 5.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-05/0.4586, allocations: 19.61 kB / 357.4 MB, free: 5.215 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.733e-06/0.4586, allocations: 8.391 kB / 357.4 MB, free: 5.207 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4586, allocations: 0 / 357.4 MB, free: 5.207 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.4604, allocations: 0.9423 MB / 358.3 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.226e-05/0.4605, allocations: 108.3 kB / 358.4 MB, free: 4.211 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.4607, allocations: 19.56 kB / 358.4 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003189/0.461, allocations: 31.66 kB / 358.5 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.4611, allocations: 27.19 kB / 358.5 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.4613, allocations: 26.84 kB / 358.5 MB, free: 4.125 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003147/0.4616, allocations: 208.2 kB / 358.7 MB, free: 3.953 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4616, allocations: 0 / 358.7 MB, free: 3.953 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008369/0.4625, allocations: 154.4 kB / 358.9 MB, free: 3.809 MB / 282.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: 31 ($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,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 29 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.last,timeTable.nextEvent,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.002556/0.465, allocations: 1.793 MB / 360.7 MB, free: 2.09 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.4664, allocations: 0.945 MB / 361.6 MB, free: 1.148 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4664, allocations: 0 / 361.6 MB, free: 1.148 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007406/0.4672, allocations: 0.5859 MB / 362.2 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.4675, allocations: 30.5 kB / 362.2 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005462/0.473, allocations: 3.84 MB / 366.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000482/0.4736, allocations: 0.779 MB / 366.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.4737, allocations: 77.47 kB / 366.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.4737, allocations: 0 / 366.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.547/3.02, allocations: 5.537 MB / 372.5 MB, free: 6.707 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat