Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.4 MB / 222.1 MB, free: 5.543 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007262/0.0007264, allocations: 8 kB / 278.8 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2617, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001661/0.2634, allocations: 1.475 MB / 327.9 MB, free: 264 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009089/0.2643, allocations: 0.6239 MB / 328.5 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.624e-05/0.2644, allocations: 6.625 kB / 328.5 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.718e-05/0.2645, allocations: 21.22 kB / 328.6 MB, free: 15.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.2646, allocations: 28.23 kB / 328.6 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.2649, allocations: 60.84 kB / 328.6 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.2651, allocations: 113 kB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.2652, allocations: 55.62 kB / 328.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.2654, allocations: 61.86 kB / 328.9 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.2655, allocations: 70.11 kB / 328.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.2655, allocations: 4.812 kB / 328.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.302e-05/0.2656, allocations: 8.375 kB / 329 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.513e-05/0.2657, allocations: 37.19 kB / 329 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.421e-05/0.2657, allocations: 56.55 kB / 329 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.2659, allocations: 121.9 kB / 329.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.2659, allocations: 0 / 329.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2659, allocations: 0 / 329.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2659, allocations: 0.6875 kB / 329.2 MB, free: 15.32 MB / 270.1 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.0008515/0.2668, allocations: 491.1 kB / 329.6 MB, free: 14.86 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2668, allocations: 9 kB / 329.7 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.763e-05/0.2669, allocations: 18.19 kB / 329.7 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.2672, allocations: 240.6 kB / 329.9 MB, free: 14.6 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.2672, allocations: 14.89 kB / 329.9 MB, free: 14.59 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.2673, allocations: 14.41 kB / 329.9 MB, free: 14.59 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004217/0.2677, allocations: 217.5 kB / 330.1 MB, free: 14.43 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2677, allocations: 0.9375 kB / 330.1 MB, free: 14.43 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.2677, allocations: 6.25 kB / 330.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.937e-05/0.2678, allocations: 10.27 kB / 330.2 MB, free: 14.43 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000346/0.2681, allocations: 148.3 kB / 330.3 MB, free: 14.36 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.2694, allocations: 0.7929 MB / 331.1 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007099/0.2701, allocations: 218.9 kB / 331.3 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.064e-05/0.2702, allocations: 3.344 kB / 331.3 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003095/0.2705, allocations: 153 kB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.2705, allocations: 0.9688 kB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006568/0.2712, allocations: 254.6 kB / 331.7 MB, free: 13.29 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.2712, allocations: 79.17 kB / 331.8 MB, free: 13.2 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.2715, allocations: 228.7 kB / 332 MB, free: 13.02 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.2716, allocations: 32.02 kB / 332 MB, free: 12.98 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.2717, allocations: 130.2 kB / 332.2 MB, free: 12.86 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.594e-05/0.2717, allocations: 42.59 kB / 332.2 MB, free: 12.83 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.2717, allocations: 0.9062 kB / 332.2 MB, free: 12.83 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.2719, allocations: 331.1 kB / 332.5 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.2721, allocations: 72.86 kB / 332.6 MB, free: 12.47 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.2723, allocations: 141 kB / 332.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.2724, allocations: 90.56 kB / 332.8 MB, free: 12.3 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.2725, allocations: 1.125 kB / 332.8 MB, free: 12.3 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004863/0.2729, allocations: 263.8 kB / 333.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.273, allocations: 9.906 kB / 333.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.273, allocations: 2.312 kB / 333.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.273, allocations: 3.312 kB / 333.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001756/0.2732, allocations: 41.56 kB / 333.2 MB, free: 12.15 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.2732, allocations: 7.562 kB / 333.2 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.2734, allocations: 42.62 kB / 333.2 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.2734, allocations: 7.625 kB / 333.2 MB, free: 12.12 MB / 270.1 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.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked 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.0001432/0.2736, allocations: 157.5 kB / 333.4 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.915e-05/0.2736, allocations: 21 kB / 333.4 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002541/0.2739, allocations: 129 kB / 333.5 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2739, allocations: 2.406 kB / 333.5 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2739, allocations: 1.25 kB / 333.5 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2739, allocations: 0 / 333.5 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/0.2745, allocations: 481.4 kB / 334 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2745, allocations: 1.125 kB / 334 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.2747, allocations: 22.58 kB / 334 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.2747, allocations: 5.141 kB / 334 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.2747, allocations: 6.25 kB / 334 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.2747, allocations: 5.094 kB / 334 MB, free: 11.43 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2747, allocations: 1.031 kB / 334 MB, free: 11.43 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.2752, allocations: 305.3 kB / 334.3 MB, free: 11.2 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.047e-05/0.2752, allocations: 98.17 kB / 334.4 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.2753, allocations: 5.234 kB / 334.4 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.2755, allocations: 29.77 kB / 334.5 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.2756, allocations: 23.92 kB / 334.5 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.2756, allocations: 12.05 kB / 334.5 MB, free: 11.03 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001403/0.2757, allocations: 148.4 kB / 334.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.2757, allocations: 3.938 kB / 334.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.2761, allocations: 40.12 kB / 334.7 MB, free: 10.84 MB / 270.1 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.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * 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.0001738/0.2762, allocations: 103.2 kB / 334.8 MB, free: 10.73 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004116/0.2767, allocations: 179.7 kB / 335 MB, free: 10.55 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.2767, allocations: 4 kB / 335 MB, free: 10.55 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.2769, allocations: 80.39 kB / 335 MB, free: 10.47 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.2772, allocations: 31.97 kB / 335.1 MB, free: 10.44 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007646/0.2779, allocations: 399.5 kB / 335.5 MB, free: 10.02 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.2783, allocations: 0.7403 MB / 336.2 MB, free: 9.258 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.2785, allocations: 33.53 kB / 336.2 MB, free: 9.227 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.026e-05/0.2785, allocations: 23.42 kB / 336.3 MB, free: 9.203 MB / 270.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2785, allocations: 0 / 336.3 MB, free: 9.203 MB / 270.1 MB Notification: Performance of Templates: time 0.004957/0.2835, allocations: 1.787 MB / 338 MB, free: 7.418 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) Environment - environmentSimulation: