Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.908/1.908, allocations: 194.8 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005418/0.0005421, allocations: 12 kB / 264 MB, free: 3.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3443, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.5141, allocations: 73.64 MB / 382.2 MB, free: 3.031 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.5145, allocations: 63.97 kB / 382.3 MB, free: 2.969 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04636/0.5608, allocations: 7.539 MB / 389.8 MB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5609, allocations: 4 kB / 389.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.659e-05/0.5609, allocations: 4 kB / 389.8 MB, free: 11.41 MB / 330.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.001518/0.5625, allocations: 0.838 MB / 390.6 MB, free: 10.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.5625, allocations: 15.91 kB / 390.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.5627, allocations: 46.55 kB / 390.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.5628, allocations: 39.62 kB / 390.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006937/0.5635, allocations: 290.6 kB / 391 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.212e-05/0.5636, allocations: 12.19 kB / 391 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.355e-05/0.5637, allocations: 24 kB / 391.1 MB, free: 9.988 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008762/0.5646, allocations: 273.1 kB / 391.3 MB, free: 9.691 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.5647, allocations: 4 kB / 391.3 MB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.954e-05/0.5647, allocations: 11.97 kB / 391.3 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.591e-05/0.5648, allocations: 4 kB / 391.3 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005682/0.5654, allocations: 155.8 kB / 391.5 MB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.5672, allocations: 1.013 MB / 392.5 MB, free: 8.438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/0.5679, allocations: 234.3 kB / 392.7 MB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.568, allocations: 4 kB / 392.7 MB, free: 8.168 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/0.5691, allocations: 0.5361 MB / 393.3 MB, free: 7.559 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 6.782e-06/0.5691, allocations: 4 kB / 393.3 MB, free: 7.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.003052/0.5722, allocations: 1.292 MB / 394.6 MB, free: 6.105 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003807/0.5726, allocations: 498.6 kB / 395.1 MB, free: 5.508 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000585/0.5732, allocations: 269.7 kB / 395.3 MB, free: 5.242 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.5733, allocations: 45.69 kB / 395.4 MB, free: 5.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.5735, allocations: 141.2 kB / 395.5 MB, free: 5.051 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.5737, allocations: 82.98 kB / 395.6 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.341e-05/0.5738, allocations: 8 kB / 395.6 MB, free: 4.961 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002328/0.574, allocations: 354.9 kB / 395.9 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005226/0.5745, allocations: 148.5 kB / 396.1 MB, free: 4.461 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006294/0.5752, allocations: 233.5 kB / 396.3 MB, free: 4.195 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008067/0.576, allocations: 460.9 kB / 396.8 MB, free: 3.684 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.576, allocations: 0 / 396.8 MB, free: 3.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002186/0.5782, allocations: 0.8258 MB / 397.6 MB, free: 2.789 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002659/0.5785, allocations: 293 kB / 397.9 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.5786, allocations: 4.625 kB / 397.9 MB, free: 2.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.5786, allocations: 11.94 kB / 397.9 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.5788, allocations: 19.92 kB / 397.9 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.5788, allocations: 4 kB / 397.9 MB, free: 2.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003802/0.5792, allocations: 35.83 kB / 398 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.5793, allocations: 28 kB / 398 MB, free: 2.34 MB / 330.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.0006759/0.58, allocations: 407.7 kB / 398.4 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.5802, allocations: 43.61 kB / 398.4 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.339e-05/0.5803, allocations: 30.17 kB / 398.5 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.5803, allocations: 4 kB / 398.5 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.5803, allocations: 0 / 398.5 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.5803, allocations: 0 / 398.5 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001825/0.5822, allocations: 0.8143 MB / 399.3 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.5822, allocations: 0 / 399.3 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.543e-05/0.5823, allocations: 7.938 kB / 399.3 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.5823, allocations: 0 / 399.3 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-05/0.5824, allocations: 19.98 kB / 399.3 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.5824, allocations: 4 kB / 399.3 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5824, allocations: 0 / 399.3 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.5849, allocations: 0.914 MB / 400.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.5851, allocations: 104.8 kB / 400.3 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.5853, allocations: 27.95 kB / 400.3 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/0.5858, allocations: 27.98 kB / 400.4 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.586, allocations: 31.91 kB / 400.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/0.5861, allocations: 27.97 kB / 400.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004639/0.5866, allocations: 209.9 kB / 400.6 MB, free: 15.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5866, allocations: 0 / 400.6 MB, free: 15.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001328/0.588, allocations: 163.8 kB / 400.8 MB, free: 15.3 MB / 346.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.00305/0.591, allocations: 1.786 MB / 402.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.5926, allocations: 0.9781 MB / 403.6 MB, free: 12.33 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5926, allocations: 0 / 403.6 MB, free: 12.33 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008642/0.5935, allocations: 0.6135 MB / 404.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.594, allocations: 20.89 kB / 404.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005684/0.5997, allocations: 3.863 MB / 408.1 MB, free: 7.645 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/0.6002, allocations: 0.7833 MB / 408.8 MB, free: 6.832 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.6003, allocations: 17.55 kB / 408.9 MB, free: 6.812 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.6005, allocations: 83.34 kB / 408.9 MB, free: 6.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.253e-06/0.6005, allocations: 4 kB / 408.9 MB, free: 6.727 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2791/0.8796, allocations: 6.876 MB / 415.8 MB, free: 98.46 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/0.8799, allocations: 170.6 kB / 416 MB, free: 98.22 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.981/3.861, allocations: 0 / 416 MB, free: 98.22 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat