Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001098/0.001101, allocations: 189.8 kB / 8.132 MB, free: 2.199 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.188/1.188, allocations: 194.2 MB / 202.8 MB, free: 8.73 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.001743/0.001743, allocations: 114.5 kB / 247.7 MB, free: 6.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.654e-06, allocations: 4 kB / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07859/0.07862, allocations: 44.48 MB / 342 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.209/0.2877, allocations: 70.79 MB / 412.8 MB, free: 24.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.288, allocations: 66.16 kB / 412.9 MB, free: 24.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.005908/0.2939, allocations: 1.835 MB / 414.7 MB, free: 22.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.294, allocations: 0 / 414.7 MB, free: 22.91 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0003383/0.2943, allocations: 486.7 kB / 415.2 MB, free: 22.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2944, allocations: 8.031 kB / 415.2 MB, free: 22.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.2944, allocations: 19.8 kB / 415.2 MB, free: 22.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.734e-05/0.2945, allocations: 167 kB / 415.4 MB, free: 22.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.2946, allocations: 8 kB / 415.4 MB, free: 22.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.2946, allocations: 11.91 kB / 415.4 MB, free: 22.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001248/0.2947, allocations: 37.56 kB / 415.5 MB, free: 22.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001351/0.2949, allocations: 93.59 kB / 415.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.2949, allocations: 0 / 415.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.2949, allocations: 0 / 415.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2949, allocations: 0 / 415.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004654/0.2954, allocations: 317.5 kB / 415.9 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.915e-05/0.2955, allocations: 68.69 kB / 415.9 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.801e-05/0.2956, allocations: 44.78 kB / 416 MB, free: 21.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.2956, allocations: 3.906 kB / 416 MB, free: 21.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001109/0.2957, allocations: 150.8 kB / 416.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.2957, allocations: 4 kB / 416.1 MB, free: 21.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002016/0.2959, allocations: 117.6 kB / 416.2 MB, free: 21.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.296, allocations: 166 kB / 416.4 MB, free: 21.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.119e-05/0.296, allocations: 123.3 kB / 416.5 MB, free: 21.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.2961, allocations: 29.7 kB / 416.6 MB, free: 21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.724e-05/0.2961, allocations: 87.33 kB / 416.6 MB, free: 20.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.2961, allocations: 23.11 kB / 416.7 MB, free: 20.9 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.2961, allocations: 3.938 kB / 416.7 MB, free: 20.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.869e-05/0.2962, allocations: 330.1 kB / 417 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.912e-05/0.2963, allocations: 25.44 kB / 417 MB, free: 20.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.493e-05/0.2963, allocations: 34.3 kB / 417 MB, free: 20.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.2964, allocations: 43.09 kB / 417.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2964, allocations: 0 / 417.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001893/0.2966, allocations: 127.8 kB / 417.2 MB, free: 20.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.2966, allocations: 4 kB / 417.2 MB, free: 20.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.2967, allocations: 4 kB / 417.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2967, allocations: 0 / 417.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.34e-05/0.2967, allocations: 0 / 417.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2967, allocations: 7.938 kB / 417.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.203e-05/0.2968, allocations: 4 kB / 417.2 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.2968, allocations: 7.938 kB / 417.2 MB, free: 20.36 MB / 314.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.0001009/0.2969, allocations: 182.1 kB / 417.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.2969, allocations: 13.92 kB / 417.4 MB, free: 20.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.297, allocations: 15.86 kB / 417.4 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.297, allocations: 4 kB / 417.4 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.297, allocations: 0 / 417.4 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.297, allocations: 0 / 417.4 MB, free: 20.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.24e-05/0.2971, allocations: 183.1 kB / 417.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2971, allocations: 0 / 417.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.522e-06/0.2971, allocations: 0 / 417.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.2971, allocations: 0 / 417.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.2972, allocations: 7.984 kB / 417.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2972, allocations: 0 / 417.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.2972, allocations: 0 / 417.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001787/0.2974, allocations: 168.9 kB / 417.8 MB, free: 19.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.264e-05/0.2974, allocations: 85.16 kB / 417.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.2974, allocations: 7.906 kB / 417.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.923e-05/0.2975, allocations: 11.98 kB / 417.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.026e-05/0.2976, allocations: 11.8 kB / 417.9 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.2976, allocations: 6.625 kB / 417.9 MB, free: 19.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.843e-05/0.2976, allocations: 101 kB / 418 MB, free: 19.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002831/0.2979, allocations: 51.94 kB / 418.1 MB, free: 19.51 MB / 314.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.0002024/0.2981, allocations: 137.6 kB / 418.2 MB, free: 19.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001822/0.2983, allocations: 198.5 kB / 418.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2983, allocations: 0 / 418.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.918e-05/0.2984, allocations: 134.8 kB / 418.5 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001122/0.2986, allocations: 7.984 kB / 418.5 MB, free: 19.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002986/0.2989, allocations: 162.9 kB / 418.7 MB, free: 18.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.299, allocations: 0.7161 MB / 419.4 MB, free: 18.17 MB / 314.7 MB Notification: Performance of SimCode: time 2.61e-07/0.299, allocations: 0 / 419.4 MB, free: 18.17 MB / 314.7 MB Notification: Performance of Templates: time 0.00345/0.3025, allocations: 1.466 MB / 420.9 MB, free: 16.75 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)