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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 168.9 kB / 8.469 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.126/1.126, allocations: 205.2 MB / 214.1 MB, free: 5.145 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009033/0.0009033, allocations: 91.27 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1654/0.1663, allocations: 52.95 MB / 315 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07141/0.2377, allocations: 47.58 MB / 362.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2311/0.4688, allocations: 80.2 MB / 442.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.4691, allocations: 71.23 kB / 442.9 MB, free: 10.72 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.06496/0.5341, allocations: 26.2 MB / 469.1 MB, free: 1.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.5341, allocations: 16.88 kB / 469.1 MB, free: 1.672 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/0.5344, allocations: 80.91 kB / 469.2 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.5358, allocations: 0.6122 MB / 469.8 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.5359, allocations: 11.69 kB / 469.8 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.391e-05/0.536, allocations: 15.78 kB / 469.8 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000422/0.5364, allocations: 171 kB / 470 MB, free: 1.254 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005752/0.537, allocations: 343.1 kB / 470.3 MB, free: 1.059 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.537, allocations: 0 / 470.3 MB, free: 1.059 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.5371, allocations: 8.359 kB / 470.3 MB, free: 1.055 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.902e-05/0.5371, allocations: 5.781 kB / 470.3 MB, free: 1.055 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.5389, allocations: 1.399 MB / 471.7 MB, free: 92 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005308/0.5394, allocations: 331.4 kB / 472.1 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.5397, allocations: 171.7 kB / 472.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.5397, allocations: 2.75 kB / 472.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004349/0.5402, allocations: 426 kB / 472.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 2.845e-06/0.5402, allocations: 0 / 472.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009534/0.5411, allocations: 427.8 kB / 473.1 MB, free: 15.49 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002002/0.5413, allocations: 455 kB / 473.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001233/0.5426, allocations: 0.8039 MB / 474.3 MB, free: 14.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.695e-05/0.5427, allocations: 39.66 kB / 474.4 MB, free: 14.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.5428, allocations: 174 kB / 474.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.688e-05/0.5429, allocations: 106.3 kB / 474.6 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.5429, allocations: 2.062 kB / 474.6 MB, free: 14.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.778e-05/0.543, allocations: 332.4 kB / 475 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.5433, allocations: 149.3 kB / 475.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003814/0.5437, allocations: 347 kB / 475.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.544, allocations: 175.7 kB / 475.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.544, allocations: 96 / 475.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008277/0.5448, allocations: 0.5044 MB / 476.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.5449, allocations: 13.81 kB / 476.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5449, allocations: 4 kB / 476.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.5449, allocations: 4 kB / 476.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.5452, allocations: 67.16 kB / 476.2 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.5452, allocations: 4 kB / 476.2 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.5456, allocations: 40.2 kB / 476.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.346e-05/0.5457, allocations: 27.48 kB / 476.3 MB, free: 13.59 MB / 330.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.0002799/0.546, allocations: 260.4 kB / 476.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.5461, allocations: 79.06 kB / 476.6 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000665/0.5468, allocations: 381.7 kB / 477 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.5468, allocations: 4 kB / 477 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5468, allocations: 0 / 477 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5468, allocations: 7.984 kB / 477 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.5479, allocations: 0.8988 MB / 477.9 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5479, allocations: 0 / 477.9 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.5481, allocations: 35.23 kB / 477.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.5481, allocations: 4 kB / 477.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.5481, allocations: 11.98 kB / 477.9 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.5481, allocations: 4 kB / 477.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.5482, allocations: 0 / 477.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007931/0.549, allocations: 0.6269 MB / 478.6 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000894/0.5499, allocations: 1.005 MB / 479.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.5501, allocations: 191.5 kB / 479.8 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.5503, allocations: 22.67 kB / 479.8 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.5506, allocations: 23.98 kB / 479.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.5507, allocations: 38.08 kB / 479.8 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.662e-05/0.5508, allocations: 23.8 kB / 479.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0007696/0.5516, allocations: 0.6265 MB / 480.5 MB, free: 9.934 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001348/0.5529, allocations: 177.9 kB / 480.7 MB, free: 9.773 MB / 330.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.000907/0.5538, allocations: 414.8 kB / 481.1 MB, free: 9.391 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006856/0.5545, allocations: 0.489 MB / 481.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5545, allocations: 0 / 481.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003653/0.5549, allocations: 351.4 kB / 481.9 MB, free: 8.738 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007553/0.5557, allocations: 138.6 kB / 482 MB, free: 8.633 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.5574, allocations: 0.9684 MB / 483 MB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006657/0.5581, allocations: 1.02 MB / 484 MB, free: 6.754 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5581, allocations: 0 / 484 MB, free: 6.754 MB / 330.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)