Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1") [: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.2+maint.om/package.mo): time 0.001646/0.001646, allocations: 192.3 kB / 8.135 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.18/1.18, allocations: 194.2 MB / 202.8 MB, free: 8.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001996/0.001996, allocations: 123 kB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.464e-06/7.564e-06, allocations: 0 / 297.6 MB, free: 8.012 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09946/0.09949, allocations: 44.49 MB / 342 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2766/0.3761, allocations: 72.8 MB / 414.8 MB, free: 22.28 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.3764, allocations: 64.58 kB / 414.9 MB, free: 22.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02113/0.3975, allocations: 7.212 MB / 422.1 MB, free: 16.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.607e-05/0.3976, allocations: 8 kB / 422.1 MB, free: 16.15 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00075/0.3984, allocations: 0.785 MB / 422.9 MB, free: 15.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3984, allocations: 8.031 kB / 422.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.095e-05/0.3985, allocations: 33.66 kB / 423 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.3989, allocations: 304.8 kB / 423.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.399, allocations: 5.688 kB / 423.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.399, allocations: 16 kB / 423.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002252/0.3993, allocations: 131 kB / 423.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.3996, allocations: 269.5 kB / 423.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3996, allocations: 0 / 423.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.3996, allocations: 4 kB / 423.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.987e-05/0.3997, allocations: 4 kB / 423.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008586/0.4005, allocations: 0.9964 MB / 424.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002286/0.4008, allocations: 223.5 kB / 424.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.401, allocations: 173.5 kB / 425.1 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.401, allocations: 0 / 425.1 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003516/0.4013, allocations: 487.7 kB / 425.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 1.793e-06/0.4014, allocations: 0 / 425.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0006748/0.402, allocations: 370.6 kB / 425.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.4022, allocations: 0.4903 MB / 426.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.4024, allocations: 255.6 kB / 426.6 MB, free: 11.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.4025, allocations: 36.77 kB / 426.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.4025, allocations: 119.1 kB / 426.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.477e-05/0.4026, allocations: 76.78 kB / 426.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.877e-05/0.4026, allocations: 0 / 426.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.461e-05/0.4027, allocations: 348.7 kB / 427.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.4029, allocations: 139 kB / 427.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.4031, allocations: 230 kB / 427.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.4035, allocations: 172.2 kB / 427.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.4035, allocations: 3.906 kB / 427.7 MB, free: 10.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006356/0.4041, allocations: 446 kB / 428.2 MB, free: 10.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.4041, allocations: 4 kB / 428.2 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/0.4042, allocations: 4 kB / 428.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4042, allocations: 8.156 kB / 428.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.083e-05/0.4043, allocations: 19.92 kB / 428.2 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.4043, allocations: 13.09 kB / 428.2 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.4045, allocations: 23.83 kB / 428.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-05/0.4045, allocations: 26.38 kB / 428.3 MB, free: 10.23 MB / 314.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 () * 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.0001958/0.4047, allocations: 345.5 kB / 428.6 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.85e-05/0.4048, allocations: 46.98 kB / 428.7 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.4048, allocations: 17.66 kB / 428.7 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.4049, allocations: 4 kB / 428.7 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4049, allocations: 3.984 kB / 428.7 MB, free: 9.789 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4049, allocations: 7.906 kB / 428.7 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.4054, allocations: 0.5635 MB / 429.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4054, allocations: 0 / 429.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.503e-05/0.4054, allocations: 11.56 kB / 429.3 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.4054, allocations: 0 / 429.3 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.4055, allocations: 19.3 kB / 429.3 MB, free: 9.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.4055, allocations: 11.41 kB / 429.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.4055, allocations: 0 / 429.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005906/0.4061, allocations: 0.5713 MB / 429.9 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.122e-05/0.4062, allocations: 107.3 kB / 430 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.182e-05/0.4063, allocations: 30.73 kB / 430 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.4065, allocations: 31.89 kB / 430 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.4066, allocations: 27.12 kB / 430.1 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.987e-05/0.4067, allocations: 27.47 kB / 430.1 MB, free: 8.504 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001376/0.4068, allocations: 200.6 kB / 430.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005977/0.4074, allocations: 143 kB / 430.4 MB, free: 8.203 MB / 314.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]) * 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.000395/0.4078, allocations: 239.1 kB / 430.7 MB, free: 7.965 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004988/0.4083, allocations: 0.5966 MB / 431.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4083, allocations: 0 / 431.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003471/0.4087, allocations: 445.8 kB / 431.7 MB, free: 7.051 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.409, allocations: 31.62 kB / 431.7 MB, free: 7.023 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007897/0.4098, allocations: 495.1 kB / 432.2 MB, free: 6.582 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.4101, allocations: 0.7987 MB / 433 MB, free: 5.766 MB / 314.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4101, allocations: 0 / 433 MB, free: 5.766 MB / 314.7 MB Notification: Performance of Templates: time 0.007598/0.4177, allocations: 4.183 MB / 437.2 MB, free: 1.664 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)