Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.645/1.645, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005509/0.0005511, allocations: 8 kB / 233.3 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09196/0.09256, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3619/0.4546, allocations: 68.27 MB / 340.4 MB, free: 4.57 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.4549, allocations: 70.02 kB / 340.4 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05337/0.5083, allocations: 7.478 MB / 347.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5084, allocations: 3.938 kB / 347.9 MB, free: 14.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.094e-05/0.5084, allocations: 4 kB / 347.9 MB, free: 14.03 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.00179/0.5102, allocations: 0.827 MB / 348.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/0.5103, allocations: 8.031 kB / 348.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.5105, allocations: 56.41 kB / 348.8 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.5107, allocations: 31.72 kB / 348.9 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007914/0.5115, allocations: 281 kB / 349.1 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.002e-05/0.5116, allocations: 14.62 kB / 349.1 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.5117, allocations: 22.86 kB / 349.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009642/0.5127, allocations: 287.8 kB / 349.4 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.5127, allocations: 0 / 349.4 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.5128, allocations: 4 kB / 349.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.5129, allocations: 4 kB / 349.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005593/0.5134, allocations: 142 kB / 349.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.5155, allocations: 1.001 MB / 350.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/0.5164, allocations: 242.5 kB / 350.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.5164, allocations: 3.688 kB / 350.8 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/0.5176, allocations: 0.5258 MB / 351.4 MB, free: 10.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 4.479e-06/0.5176, allocations: 0 / 351.4 MB, free: 10.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.003367/0.521, allocations: 1.319 MB / 352.7 MB, free: 9.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004031/0.5214, allocations: 493.3 kB / 353.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006168/0.5221, allocations: 267.1 kB / 353.4 MB, free: 8.434 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.5223, allocations: 47.69 kB / 353.5 MB, free: 8.391 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.5225, allocations: 154.6 kB / 353.6 MB, free: 8.273 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.5226, allocations: 67.66 kB / 353.7 MB, free: 8.219 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.5227, allocations: 7.938 kB / 353.7 MB, free: 8.215 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.5229, allocations: 350.5 kB / 354 MB, free: 7.879 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005533/0.5235, allocations: 140 kB / 354.2 MB, free: 7.777 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007326/0.5243, allocations: 237.7 kB / 354.4 MB, free: 7.551 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008616/0.5252, allocations: 448.4 kB / 354.8 MB, free: 7.105 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.5252, allocations: 0 / 354.8 MB, free: 7.105 MB / 282.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.002527/0.5277, allocations: 0.8437 MB / 355.7 MB, free: 6.316 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003397/0.5281, allocations: 295.9 kB / 356 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.5282, allocations: 0 / 356 MB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.983e-05/0.5282, allocations: 11.94 kB / 356 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.5284, allocations: 15.48 kB / 356 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.716e-05/0.5285, allocations: 15.89 kB / 356 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004815/0.529, allocations: 27.16 kB / 356 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.5291, allocations: 31.45 kB / 356.1 MB, free: 5.883 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.0007356/0.5299, allocations: 392.9 kB / 356.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.5301, allocations: 39.62 kB / 356.5 MB, free: 5.441 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.934e-05/0.5302, allocations: 25.48 kB / 356.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.5302, allocations: 7.984 kB / 356.5 MB, free: 5.418 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.455e-06/0.5302, allocations: 0 / 356.5 MB, free: 5.418 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.5302, allocations: 11.95 kB / 356.5 MB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001938/0.5322, allocations: 0.8073 MB / 357.3 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.066e-06/0.5323, allocations: 0 / 357.3 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.106e-05/0.5324, allocations: 4 kB / 357.4 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.437e-06/0.5324, allocations: 0 / 357.4 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.5325, allocations: 23.36 kB / 357.4 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.241e-05/0.5325, allocations: 7.953 kB / 357.4 MB, free: 4.621 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.5326, allocations: 0 / 357.4 MB, free: 4.621 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00275/0.5353, allocations: 0.931 MB / 358.3 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.5356, allocations: 100.7 kB / 358.4 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/0.5358, allocations: 27.12 kB / 358.4 MB, free: 3.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005602/0.5364, allocations: 31.66 kB / 358.5 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.5366, allocations: 22.16 kB / 358.5 MB, free: 3.578 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/0.5368, allocations: 27.8 kB / 358.5 MB, free: 3.555 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004638/0.5372, allocations: 203.5 kB / 358.7 MB, free: 3.387 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.5373, allocations: 0 / 358.7 MB, free: 3.387 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001416/0.5387, allocations: 158.5 kB / 358.9 MB, free: 3.238 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.00402/0.5428, allocations: 1.79 MB / 360.7 MB, free: 1.52 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.5449, allocations: 0.9492 MB / 361.6 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.545, allocations: 0 / 361.6 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.5462, allocations: 0.5803 MB / 362.2 MB, free: 24 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.5468, allocations: 37.89 kB / 362.2 MB, free: 15.99 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00815/0.555, allocations: 3.807 MB / 366 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000661/0.5557, allocations: 0.7781 MB / 366.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002106/0.556, allocations: 25.53 kB / 366.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.5562, allocations: 70.86 kB / 366.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of SimCode: time 1.834e-06/0.5562, allocations: 0 / 366.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03906/0.5953, allocations: 6.697 MB / 373.6 MB, free: 5.004 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003299/0.5957, allocations: 169.3 kB / 373.8 MB, free: 4.758 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.905/3.501, allocations: 0 / 373.8 MB, free: 4.758 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat