Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") [: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.1+maint.om/package.mo): time 0.004032/0.004032, allocations: 175 kB / 7.451 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.422/1.422, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001719/0.001719, allocations: 116.9 kB / 217.7 MB, free: 8.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.913e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07962/0.07965, allocations: 38.76 MB / 300.5 MB, free: 3.91 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2717/0.3514, allocations: 65.49 MB / 366 MB, free: 2.98 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.3517, allocations: 63.84 kB / 366 MB, free: 2.949 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.008206/0.3599, allocations: 1.834 MB / 367.9 MB, free: 1.355 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.36, allocations: 4 kB / 367.9 MB, free: 1.352 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004262/0.3604, allocations: 483.5 kB / 368.4 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.3604, allocations: 8.031 kB / 368.4 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.252e-05/0.3605, allocations: 13.97 kB / 368.4 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.3607, allocations: 182.8 kB / 368.6 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.3607, allocations: 4 kB / 368.6 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.3607, allocations: 7.938 kB / 368.6 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001657/0.3609, allocations: 42.86 kB / 368.6 MB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.3611, allocations: 82.62 kB / 368.7 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3611, allocations: 0 / 368.7 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.3612, allocations: 7.906 kB / 368.7 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3612, allocations: 0 / 368.7 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005159/0.3617, allocations: 328.7 kB / 369 MB, free: 140 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.3619, allocations: 60.14 kB / 369.1 MB, free: 88 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.901e-05/0.362, allocations: 45.84 kB / 369.1 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.491e-05/0.362, allocations: 3.984 kB / 369.1 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.3623, allocations: 152 kB / 369.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.784e-06/0.3623, allocations: 0 / 369.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003412/0.3626, allocations: 112.8 kB / 369.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3628, allocations: 169.4 kB / 369.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.3629, allocations: 115.8 kB / 369.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.363, allocations: 29.7 kB / 369.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.61e-05/0.363, allocations: 105.4 kB / 369.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.008e-05/0.3631, allocations: 26.53 kB / 369.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.3631, allocations: 0 / 369.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3633, allocations: 324.6 kB / 370.1 MB, free: 15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.351e-05/0.3634, allocations: 33.8 kB / 370.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.019e-05/0.3635, allocations: 34.98 kB / 370.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.3637, allocations: 32.23 kB / 370.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3637, allocations: 0 / 370.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003556/0.3641, allocations: 126.9 kB / 370.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.3641, allocations: 4 kB / 370.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3641, allocations: 0 / 370.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.3642, allocations: 7.844 kB / 370.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.331e-05/0.3642, allocations: 8 kB / 370.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3642, allocations: 0 / 370.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.503e-05/0.3643, allocations: 8.859 kB / 370.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.3644, allocations: 7.375 kB / 370.4 MB, free: 14.79 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001778/0.3646, allocations: 172.1 kB / 370.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.3646, allocations: 15.81 kB / 370.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.563e-05/0.3647, allocations: 11.81 kB / 370.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3647, allocations: 4 kB / 370.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3647, allocations: 0 / 370.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.3647, allocations: 0 / 370.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.3649, allocations: 170.5 kB / 370.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.3649, allocations: 7.609 kB / 370.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.149e-05/0.365, allocations: 7.938 kB / 370.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.365, allocations: 0 / 370.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.365, allocations: 7.906 kB / 370.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.365, allocations: 0 / 370.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.365, allocations: 3.938 kB / 370.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003244/0.3654, allocations: 158.5 kB / 370.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.395e-05/0.3654, allocations: 81.16 kB / 371 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.838e-05/0.3655, allocations: 7.812 kB / 371 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.3656, allocations: 15.98 kB / 371 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.25e-05/0.3657, allocations: 11.97 kB / 371.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.3657, allocations: 11.34 kB / 371.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.836e-05/0.3658, allocations: 103.2 kB / 371.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004729/0.3663, allocations: 51.19 kB / 371.2 MB, free: 13.93 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0003635/0.3667, allocations: 140.4 kB / 371.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.367, allocations: 199.7 kB / 371.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.367, allocations: 0 / 371.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.3672, allocations: 134.6 kB / 371.7 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.3674, allocations: 7.938 kB / 371.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004756/0.3679, allocations: 160.4 kB / 371.8 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.3683, allocations: 0.7114 MB / 372.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3684, allocations: 0 / 372.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of Templates: time 0.005546/0.3739, allocations: 1.466 MB / 374 MB, free: 11.14 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)