Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001116/0.001115, allocations: 184 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.114/1.114, allocations: 221.4 MB / 229.9 MB, free: 3.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009002/0.0009002, allocations: 95.92 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09459/0.09552, allocations: 55.81 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.3039, allocations: 50.38 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08765/0.3916, allocations: 81.55 MB / 468.5 MB, free: 5.258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.3919, allocations: 71.91 kB / 468.6 MB, free: 5.188 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.07159/0.4635, allocations: 26.88 MB / 495.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.4635, allocations: 8 kB / 495.5 MB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.4637, allocations: 79.06 kB / 495.6 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.4649, allocations: 0.6131 MB / 496.2 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.4649, allocations: 8 kB / 496.2 MB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/0.465, allocations: 23.98 kB / 496.2 MB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003152/0.4653, allocations: 172.4 kB / 496.4 MB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.4658, allocations: 349.6 kB / 496.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.4658, allocations: 0 / 496.7 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.4658, allocations: 4 kB / 496.7 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.4658, allocations: 8 kB / 496.7 MB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.4675, allocations: 1.389 MB / 498.1 MB, free: 7.465 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.4679, allocations: 328.1 kB / 498.4 MB, free: 7.109 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.4681, allocations: 171.5 kB / 498.6 MB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.4682, allocations: 4 kB / 498.6 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004439/0.4686, allocations: 429.8 kB / 499 MB, free: 6.449 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.044e-06/0.4686, allocations: 0 / 499 MB, free: 6.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.000743/0.4694, allocations: 423.8 kB / 499.5 MB, free: 6.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.4696, allocations: 456.9 kB / 499.9 MB, free: 5.477 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.4706, allocations: 0.8084 MB / 0.489 GB, free: 4.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/0.4707, allocations: 41.64 kB / 0.489 GB, free: 4.617 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.4708, allocations: 180.8 kB / 0.4892 GB, free: 4.438 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.4709, allocations: 102.7 kB / 0.4893 GB, free: 4.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-05/0.4709, allocations: 7.938 kB / 0.4893 GB, free: 4.328 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.651e-05/0.471, allocations: 322 kB / 0.4896 GB, free: 4.008 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.4713, allocations: 148.9 kB / 0.4897 GB, free: 3.863 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.4716, allocations: 349.3 kB / 0.4901 GB, free: 3.441 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003033/0.4719, allocations: 183.8 kB / 0.4902 GB, free: 3.262 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.472, allocations: 0 / 0.4902 GB, free: 3.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007986/0.4728, allocations: 0.5004 MB / 0.4907 GB, free: 2.754 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.4728, allocations: 4 kB / 0.4907 GB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.4728, allocations: 4.281 kB / 0.4907 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.4728, allocations: 12 kB / 0.4908 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.4731, allocations: 63.84 kB / 0.4908 GB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.4731, allocations: 11.98 kB / 0.4908 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.4734, allocations: 39.67 kB / 0.4909 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.063e-05/0.4735, allocations: 20 kB / 0.4909 GB, free: 2.602 MB / 378.7 MB 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.0002085/0.4737, allocations: 245.9 kB / 0.4911 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.4738, allocations: 79.06 kB / 0.4912 GB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006611/0.4745, allocations: 383.3 kB / 0.4916 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.4745, allocations: 4 kB / 0.4916 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4745, allocations: 4 kB / 0.4916 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.4745, allocations: 7.938 kB / 0.4916 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.4757, allocations: 0.8935 MB / 0.4924 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4757, allocations: 4.062 kB / 0.4924 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.4758, allocations: 31.92 kB / 0.4925 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4758, allocations: 4 kB / 0.4925 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.4759, allocations: 15.98 kB / 0.4925 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4759, allocations: 4.281 kB / 0.4925 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4759, allocations: 4 kB / 0.4925 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00082/0.4767, allocations: 0.6152 MB / 0.4931 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.111/0.5877, allocations: 1.002 MB / 0.4941 GB, free: 132.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.588, allocations: 198.1 kB / 0.4943 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.5881, allocations: 21.88 kB / 0.4943 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.5885, allocations: 23.78 kB / 0.4943 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.858e-05/0.5886, allocations: 36.91 kB / 0.4944 GB, free: 132.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.5886, allocations: 28.5 kB / 0.4944 GB, free: 132.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007088/0.5893, allocations: 0.6255 MB / 0.495 GB, free: 132 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001254/0.5906, allocations: 180.6 kB / 0.4952 GB, free: 132 MB / 378.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.0007562/0.5914, allocations: 409.7 kB / 0.4956 GB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005739/0.5919, allocations: 495.8 kB / 0.496 GB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.592, allocations: 0 / 0.496 GB, free: 131.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003118/0.5923, allocations: 359.8 kB / 0.4964 GB, free: 131.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006665/0.593, allocations: 137.5 kB / 0.4965 GB, free: 131.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.5944, allocations: 0.9656 MB / 0.4974 GB, free: 131.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004456/0.5948, allocations: 1.012 MB / 0.4984 GB, free: 130.8 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5948, allocations: 1.781 kB / 0.4984 GB, free: 130.8 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Interaction1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)