Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001326/0.001326, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001452/0.001452, allocations: 191.2 kB / 16.25 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.142/2.142, allocations: 205.1 MB / 222.1 MB, free: 4.742 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.001254/0.001254, allocations: 47.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3354, allocations: 46.63 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004318/0.3398, allocations: 1.864 MB / 326.7 MB, free: 488 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.3414, allocations: 0.6529 MB / 327.4 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.3417, allocations: 2.406 kB / 327.4 MB, free: 15.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.342, allocations: 18.02 kB / 327.4 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001931/0.3422, allocations: 32.22 kB / 327.4 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004189/0.3426, allocations: 68.53 kB / 327.5 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002707/0.3429, allocations: 175.5 kB / 327.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.3431, allocations: 76.5 kB / 327.7 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.3433, allocations: 70.8 kB / 327.8 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.3435, allocations: 87.48 kB / 327.9 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/0.3435, allocations: 14.5 kB / 327.9 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.709e-05/0.3436, allocations: 30.11 kB / 327.9 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.275e-05/0.3437, allocations: 46.03 kB / 328 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.749e-05/0.3438, allocations: 83.69 kB / 328 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.3441, allocations: 191.4 kB / 328.2 MB, free: 15.36 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3441, allocations: 0 / 328.2 MB, free: 15.36 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3441, allocations: 1.031 kB / 328.2 MB, free: 15.36 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3442, allocations: 0 / 328.2 MB, free: 15.36 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.001083/0.3452, allocations: 0.5047 MB / 328.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.3453, allocations: 9.312 kB / 328.7 MB, free: 14.88 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/0.3454, allocations: 24.25 kB / 328.8 MB, free: 14.87 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.3457, allocations: 237.3 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.3457, allocations: 11.09 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.3458, allocations: 19.47 kB / 329 MB, free: 14.61 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004487/0.3462, allocations: 221.1 kB / 329.3 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3463, allocations: 4 kB / 329.3 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.3463, allocations: 9.219 kB / 329.3 MB, free: 14.44 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.79e-05/0.3463, allocations: 11.17 kB / 329.3 MB, free: 14.44 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00034/0.3467, allocations: 141.2 kB / 329.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.3479, allocations: 0.7829 MB / 330.2 MB, free: 13.66 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006541/0.3486, allocations: 195.5 kB / 330.4 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.3487, allocations: 61.84 kB / 330.4 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.3488, allocations: 6.469 kB / 330.5 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003037/0.3491, allocations: 151.1 kB / 330.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.3491, allocations: 0 / 330.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006415/0.3498, allocations: 240 kB / 330.8 MB, free: 13.27 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/0.3498, allocations: 84.23 kB / 330.9 MB, free: 13.18 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.3501, allocations: 221.5 kB / 331.1 MB, free: 13.01 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.169e-05/0.3501, allocations: 32.52 kB / 331.2 MB, free: 12.97 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.3503, allocations: 146.6 kB / 331.3 MB, free: 12.84 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.3503, allocations: 29.34 kB / 331.3 MB, free: 12.81 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.654e-05/0.3504, allocations: 56.09 kB / 331.4 MB, free: 12.77 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3506, allocations: 339.5 kB / 331.7 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.3508, allocations: 73.8 kB / 331.8 MB, free: 12.4 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.351, allocations: 131.2 kB / 331.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.3514, allocations: 211.1 kB / 332.1 MB, free: 12.13 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3514, allocations: 4.688 kB / 332.1 MB, free: 12.13 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004904/0.3519, allocations: 246 kB / 332.4 MB, free: 12 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.3519, allocations: 9.594 kB / 332.4 MB, free: 12 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.3519, allocations: 2.344 kB / 332.4 MB, free: 12 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.352, allocations: 3.656 kB / 332.4 MB, free: 12 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.3521, allocations: 35.81 kB / 332.4 MB, free: 11.99 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.3522, allocations: 11.53 kB / 332.4 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.3524, allocations: 36.58 kB / 332.5 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.3524, allocations: 16.09 kB / 332.5 MB, free: 11.95 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 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001608/0.3526, allocations: 144.8 kB / 332.6 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.3526, allocations: 17.25 kB / 332.6 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002988/0.3529, allocations: 134 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.3529, allocations: 10.31 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.353, allocations: 1.031 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.353, allocations: 5.141 kB / 332.8 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007255/0.3537, allocations: 478.9 kB / 333.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3537, allocations: 0 / 333.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.3538, allocations: 23.98 kB / 333.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3538, allocations: 0 / 333.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.3539, allocations: 3.984 kB / 333.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.3539, allocations: 11.94 kB / 333.3 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3539, allocations: 0 / 333.3 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004653/0.3544, allocations: 280.1 kB / 333.6 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/0.3544, allocations: 93.05 kB / 333.7 MB, free: 10.83 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.628e-05/0.3545, allocations: 8 kB / 333.7 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.3547, allocations: 27.84 kB / 333.7 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.192e-05/0.3548, allocations: 23.97 kB / 333.7 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.3548, allocations: 4 kB / 333.7 MB, free: 10.77 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001258/0.3549, allocations: 140.6 kB / 333.9 MB, free: 10.63 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3549, allocations: 0 / 333.9 MB, free: 10.63 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003265/0.3553, allocations: 43.91 kB / 333.9 MB, free: 10.59 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002296/0.3555, allocations: 115.1 kB / 334 MB, free: 10.47 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004324/0.3559, allocations: 179.8 kB / 334.2 MB, free: 10.29 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.356, allocations: 0 / 334.2 MB, free: 10.29 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000264/0.3562, allocations: 79.89 kB / 334.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005957/0.3568, allocations: 32.55 kB / 334.3 MB, free: 10.18 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.3581, allocations: 421.6 kB / 334.7 MB, free: 9.742 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.3587, allocations: 0.732 MB / 335.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001257/0.3589, allocations: 29.78 kB / 335.5 MB, free: 8.957 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.18e-05/0.3589, allocations: 27.42 kB / 335.5 MB, free: 8.93 MB / 270.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3589, allocations: 0 / 335.5 MB, free: 8.93 MB / 270.1 MB Notification: Performance of Templates: time 0.006216/0.3652, allocations: 1.954 MB / 337.5 MB, free: 6.977 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)