Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 172.1 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.367/1.367, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008177/0.0008181, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.464e-05, allocations: 7.984 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08033/0.08037, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/0.3679, allocations: 80.94 MB / 451 MB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.3682, allocations: 67.53 kB / 451.1 MB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06883/0.437, allocations: 25.94 MB / 477 MB, free: 3.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4371, allocations: 0 / 477 MB, free: 3.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.971e-05/0.4371, allocations: 11.94 kB / 477.1 MB, free: 3.738 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001598/0.4387, allocations: 0.9875 MB / 478 MB, free: 2.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.4388, allocations: 8.031 kB / 478.1 MB, free: 2.652 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.4389, allocations: 62.47 kB / 478.1 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002219/0.4391, allocations: 79.06 kB / 478.2 MB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.4404, allocations: 0.6087 MB / 478.8 MB, free: 1.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.4404, allocations: 16 kB / 478.8 MB, free: 1.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.778e-05/0.4405, allocations: 23.95 kB / 478.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.4411, allocations: 367 kB / 479.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.4411, allocations: 4 kB / 479.2 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.4412, allocations: 16 kB / 479.2 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.4412, allocations: 4 kB / 479.2 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003462/0.4415, allocations: 191.8 kB / 479.4 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.4435, allocations: 1.423 MB / 480.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005373/0.4441, allocations: 363.1 kB / 481.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.4443, allocations: 179.5 kB / 481.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.4444, allocations: 8 kB / 481.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005798/0.445, allocations: 467.2 kB / 481.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.474e-06/0.445, allocations: 0 / 481.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001089/0.4461, allocations: 0.6301 MB / 482.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002475/0.4463, allocations: 456.9 kB / 482.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.4475, allocations: 0.8396 MB / 483.7 MB, free: 12.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6e-05/0.4476, allocations: 45.7 kB / 483.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.4479, allocations: 304.9 kB / 484.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.448, allocations: 114.6 kB / 484.2 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.448, allocations: 8 kB / 484.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4482, allocations: 326 kB / 484.5 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000251/0.4484, allocations: 153 kB / 484.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.4488, allocations: 366.4 kB / 485 MB, free: 11.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.4492, allocations: 267.4 kB / 485.3 MB, free: 10.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.4492, allocations: 4 kB / 485.3 MB, free: 10.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001034/0.4502, allocations: 0.6848 MB / 486 MB, free: 10.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.305e-05/0.4503, allocations: 101.4 kB / 486.1 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.4503, allocations: 4 kB / 486.1 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.4504, allocations: 8 kB / 486.1 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.4506, allocations: 68.09 kB / 486.2 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.4507, allocations: 4 kB / 486.2 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.451, allocations: 47.73 kB / 486.2 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.757e-05/0.4511, allocations: 27.98 kB / 486.2 MB, free: 9.902 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * 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.0002722/0.4513, allocations: 273.7 kB / 486.5 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.4515, allocations: 83.02 kB / 486.6 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007976/0.4523, allocations: 0.5221 MB / 487.1 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.4523, allocations: 4 kB / 487.1 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4523, allocations: 4 kB / 487.1 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.4523, allocations: 3.984 kB / 487.1 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.4536, allocations: 1.06 MB / 488.2 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.4536, allocations: 3.953 kB / 488.2 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.4537, allocations: 35.92 kB / 488.2 MB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.4537, allocations: 4 kB / 488.2 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.048e-05/0.4538, allocations: 15.98 kB / 488.2 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.4538, allocations: 8 kB / 488.2 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4538, allocations: 4 kB / 488.2 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.4549, allocations: 0.8553 MB / 489.1 MB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002353/0.4551, allocations: 192.1 kB / 489.3 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.4552, allocations: 27.98 kB / 489.3 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.4555, allocations: 23.98 kB / 489.3 MB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.4556, allocations: 51.88 kB / 489.4 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.554e-05/0.4557, allocations: 20.19 kB / 489.4 MB, free: 6.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008061/0.4565, allocations: 0.6592 MB / 490.1 MB, free: 5.863 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4565, allocations: 3.938 kB / 490.1 MB, free: 5.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005985/0.4571, allocations: 188 kB / 490.3 MB, free: 5.676 MB / 362.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,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.002168/0.4593, allocations: 1.941 MB / 492.2 MB, free: 3.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007832/0.4601, allocations: 0.6346 MB / 492.8 MB, free: 3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4601, allocations: 0.5625 kB / 492.8 MB, free: 3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004244/0.4605, allocations: 450.1 kB / 493.3 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006728/0.4612, allocations: 144.8 kB / 493.4 MB, free: 2.387 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.4631, allocations: 1.173 MB / 494.6 MB, free: 1.164 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.4636, allocations: 0.9452 MB / 495.5 MB, free: 192 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003209/0.464, allocations: 125.4 kB / 495.7 MB, free: 64 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003244/0.4643, allocations: 247.4 kB / 495.9 MB, free: 15.82 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4643, allocations: 0 / 495.9 MB, free: 15.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03032/0.4946, allocations: 15.56 MB / 0.4995 GB, free: 236 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/0.4949, allocations: 183.3 kB / 0.4996 GB, free: 16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.309/2.804, allocations: 0 / 0.4996 GB, free: 16 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat