Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1") [: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.001048/0.001048, allocations: 189.8 kB / 8.139 MB, free: 0.8711 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.191/1.191, allocations: 194.2 MB / 202.8 MB, free: 1.992 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001792/0.001792, allocations: 121.1 kB / 247.8 MB, free: 4.988 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 6.352e-06/6.392e-06, allocations: 0 / 297.6 MB, free: 26.42 MB / 226.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06904/0.06907, allocations: 44.49 MB / 342 MB, free: 13.88 MB / 258.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/0.2747, allocations: 72.45 MB / 414.5 MB, free: 1.328 MB / 290.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/0.2749, allocations: 64.22 kB / 414.6 MB, free: 1.297 MB / 290.8 MB Notification: Performance of FrontEnd: time 0.008287/0.2832, allocations: 2.466 MB / 417 MB, free: 15.25 MB / 306.8 MB Notification: Performance of Transformations before backend: time 1.712e-05/0.2832, allocations: 4 kB / 417 MB, free: 15.25 MB / 306.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007407/0.284, allocations: 478 kB / 417.5 MB, free: 14.75 MB / 306.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.284, allocations: 12.03 kB / 417.5 MB, free: 14.74 MB / 306.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.919e-05/0.2841, allocations: 23.72 kB / 417.5 MB, free: 14.71 MB / 306.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.2844, allocations: 244.9 kB / 417.8 MB, free: 14.45 MB / 306.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.2845, allocations: 8 kB / 417.8 MB, free: 14.44 MB / 306.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.2845, allocations: 8 kB / 417.8 MB, free: 14.43 MB / 306.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002217/0.2847, allocations: 112 kB / 417.9 MB, free: 14.35 MB / 306.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.285, allocations: 177.4 kB / 418.1 MB, free: 14.19 MB / 306.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.285, allocations: 0 / 418.1 MB, free: 14.19 MB / 306.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.2851, allocations: 7.984 kB / 418.1 MB, free: 14.18 MB / 306.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.2851, allocations: 11.98 kB / 418.1 MB, free: 14.17 MB / 306.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.2862, allocations: 0.7563 MB / 418.8 MB, free: 13.43 MB / 306.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.2865, allocations: 133.5 kB / 419 MB, free: 13.32 MB / 306.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.656e-05/0.2866, allocations: 47.97 kB / 419 MB, free: 13.28 MB / 306.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.76e-05/0.2867, allocations: 4 kB / 419 MB, free: 13.28 MB / 306.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.2868, allocations: 123.8 kB / 419.1 MB, free: 13.16 MB / 306.8 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.2868, allocations: 0 / 419.1 MB, free: 13.16 MB / 306.8 MB Notification: Performance of matching and sorting (n=15): time 0.0003127/0.2872, allocations: 150.8 kB / 419.3 MB, free: 13.03 MB / 306.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.2872, allocations: 81.11 kB / 419.4 MB, free: 12.93 MB / 306.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.2874, allocations: 187 kB / 419.6 MB, free: 12.77 MB / 306.8 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.2874, allocations: 29.7 kB / 419.6 MB, free: 12.73 MB / 306.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.2875, allocations: 127.3 kB / 419.7 MB, free: 12.61 MB / 306.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.215e-05/0.2875, allocations: 31.69 kB / 419.7 MB, free: 12.59 MB / 306.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/0.2875, allocations: 0 / 419.7 MB, free: 12.59 MB / 306.8 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2877, allocations: 341.9 kB / 420.1 MB, free: 12.25 MB / 306.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.018e-05/0.2878, allocations: 52.55 kB / 420.1 MB, free: 12.22 MB / 306.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.2879, allocations: 118 kB / 420.2 MB, free: 12.09 MB / 306.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.288, allocations: 65.52 kB / 420.3 MB, free: 12.05 MB / 306.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.288, allocations: 4 kB / 420.3 MB, free: 12.04 MB / 306.8 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003474/0.2884, allocations: 203.5 kB / 420.5 MB, free: 11.87 MB / 306.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.2884, allocations: 11.47 kB / 420.5 MB, free: 11.86 MB / 306.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2884, allocations: 8 kB / 420.5 MB, free: 11.85 MB / 306.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2885, allocations: 4 kB / 420.5 MB, free: 11.85 MB / 306.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.2887, allocations: 39.11 kB / 420.6 MB, free: 11.81 MB / 306.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.2887, allocations: 11.89 kB / 420.6 MB, free: 11.8 MB / 306.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.2889, allocations: 31.89 kB / 420.6 MB, free: 11.77 MB / 306.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.2889, allocations: 8 kB / 420.6 MB, free: 11.76 MB / 306.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.2891, allocations: 123.1 kB / 420.7 MB, free: 11.64 MB / 306.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.2891, allocations: 19.8 kB / 420.8 MB, free: 11.62 MB / 306.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002329/0.2893, allocations: 118.2 kB / 420.9 MB, free: 11.52 MB / 306.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2893, allocations: 7.906 kB / 420.9 MB, free: 11.52 MB / 306.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.2894, allocations: 4 kB / 420.9 MB, free: 11.51 MB / 306.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2894, allocations: 0 / 420.9 MB, free: 11.51 MB / 306.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005317/0.2899, allocations: 428.7 kB / 421.3 MB, free: 11.1 MB / 306.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2899, allocations: 8.125 kB / 421.3 MB, free: 11.09 MB / 306.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.2901, allocations: 31.91 kB / 421.3 MB, free: 11.06 MB / 306.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2901, allocations: 0 / 421.3 MB, free: 11.06 MB / 306.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.2901, allocations: 0 / 421.3 MB, free: 11.06 MB / 306.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.2901, allocations: 4 kB / 421.3 MB, free: 11.05 MB / 306.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.2901, allocations: 0 / 421.3 MB, free: 11.05 MB / 306.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002909/0.2904, allocations: 275.8 kB / 421.6 MB, free: 10.79 MB / 306.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.2905, allocations: 88.92 kB / 421.7 MB, free: 10.68 MB / 306.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.994e-05/0.2905, allocations: 3.984 kB / 421.7 MB, free: 10.68 MB / 306.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.2908, allocations: 27.89 kB / 421.7 MB, free: 10.65 MB / 306.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.399e-05/0.2909, allocations: 22.59 kB / 421.8 MB, free: 10.64 MB / 306.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.2909, allocations: 7.984 kB / 421.8 MB, free: 10.63 MB / 306.8 MB Notification: Performance of sort global known variables: time 8.814e-05/0.291, allocations: 134.6 kB / 421.9 MB, free: 10.52 MB / 306.8 MB Notification: Performance of remove unused functions: time 0.0003134/0.2913, allocations: 35.94 kB / 421.9 MB, free: 10.48 MB / 306.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001534/0.2915, allocations: 115.9 kB / 422 MB, free: 10.36 MB / 306.8 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.2917, allocations: 142.3 kB / 422.2 MB, free: 10.25 MB / 306.8 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2917, allocations: 3.938 kB / 422.2 MB, free: 10.25 MB / 306.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.2919, allocations: 69.28 kB / 422.3 MB, free: 10.2 MB / 306.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.2921, allocations: 26.83 kB / 422.3 MB, free: 10.18 MB / 306.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005755/0.2927, allocations: 229.7 kB / 422.5 MB, free: 9.949 MB / 306.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003607/0.2931, allocations: 0.762 MB / 423.3 MB, free: 9.16 MB / 306.8 MB Notification: Performance of SimCode: time 1.563e-06/0.2931, allocations: 0 / 423.3 MB, free: 9.16 MB / 306.8 MB Notification: Performance of Templates: time 0.004858/0.2979, allocations: 1.997 MB / 425.3 MB, free: 7.176 MB / 306.8 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)