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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.00137, allocations: 109 kB / 17.06 MB, free: 5.969 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.00145/0.00145, allocations: 200 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.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.001136/0.001136, allocations: 47.94 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1183, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003385/0.1217, allocations: 1.824 MB / 376.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1231, allocations: 0.6628 MB / 377 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.1232, allocations: 8 kB / 377 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.1234, allocations: 27.67 kB / 377 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.1235, allocations: 31.66 kB / 377 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.1239, allocations: 87.78 kB / 377.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.1241, allocations: 167.5 kB / 377.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.1243, allocations: 82.61 kB / 377.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.1245, allocations: 71.64 kB / 377.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001679/0.1247, allocations: 83.61 kB / 377.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.736e-05/0.1247, allocations: 16 kB / 377.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.896e-05/0.1248, allocations: 23.98 kB / 377.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.442e-05/0.1249, allocations: 47.84 kB / 377.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.661e-05/0.125, allocations: 87.47 kB / 377.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.1253, allocations: 199 kB / 377.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1253, allocations: 0 / 377.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1253, allocations: 0 / 377.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.809e-06/0.1253, allocations: 0 / 377.9 MB, free: 1.145 MB / 318.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.001026/0.1263, allocations: 0.5024 MB / 378.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.1264, allocations: 12.03 kB / 378.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.879e-05/0.1265, allocations: 24.8 kB / 378.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.1268, allocations: 252 kB / 378.7 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.1269, allocations: 12.38 kB / 378.7 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.704e-05/0.1269, allocations: 16.38 kB / 378.7 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/0.1274, allocations: 213.6 kB / 378.9 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.1274, allocations: 0 / 378.9 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.1274, allocations: 8 kB / 378.9 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.329/0.4564, allocations: 11.88 kB / 378.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007727/0.4573, allocations: 144.5 kB / 379.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.4592, allocations: 0.7787 MB / 379.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.4602, allocations: 187.4 kB / 380 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.4605, allocations: 65.48 kB / 380.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-05/0.4606, allocations: 6.203 kB / 380.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004872/0.4611, allocations: 150.7 kB / 380.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 4.468e-06/0.4611, allocations: 0 / 380.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001002/0.4621, allocations: 246.1 kB / 380.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.4622, allocations: 85.72 kB / 380.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003017/0.4625, allocations: 223.4 kB / 380.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.4625, allocations: 31.02 kB / 380.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.4627, allocations: 134.5 kB / 380.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.868e-05/0.4627, allocations: 43.41 kB / 381 MB, free: 12.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.4629, allocations: 57.56 kB / 381 MB, free: 12.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.463, allocations: 334.2 kB / 381.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.4632, allocations: 66.73 kB / 381.4 MB, free: 11.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.4635, allocations: 144.4 kB / 381.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005595/0.4641, allocations: 207.1 kB / 381.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.4641, allocations: 1.125 kB / 381.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007297/0.4648, allocations: 251.7 kB / 382 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.4649, allocations: 9.188 kB / 382 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.4649, allocations: 2.781 kB / 382 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/0.465, allocations: 4.172 kB / 382 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.4652, allocations: 39.14 kB / 382.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.4652, allocations: 4.75 kB / 382.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.4655, allocations: 33.06 kB / 382.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.4655, allocations: 12.64 kB / 382.1 MB, free: 11.62 MB / 318.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.0002126/0.4657, allocations: 152.2 kB / 382.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.533e-05/0.4658, allocations: 18 kB / 382.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003679/0.4662, allocations: 136 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.4662, allocations: 2.312 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.4662, allocations: 1.031 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.4662, allocations: 0.7969 kB / 382.4 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008429/0.4671, allocations: 481.8 kB / 382.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4671, allocations: 1.156 kB / 382.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.4673, allocations: 21.77 kB / 382.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.4673, allocations: 1.219 kB / 382.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.4674, allocations: 8.844 kB / 382.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.4674, allocations: 1 kB / 382.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.4674, allocations: 4.562 kB / 382.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004476/0.4678, allocations: 292.7 kB / 383.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/0.4679, allocations: 93.95 kB / 383.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.4679, allocations: 5 kB / 383.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.4681, allocations: 20.16 kB / 383.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.4682, allocations: 24.09 kB / 383.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.4683, allocations: 10.34 kB / 383.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001584/0.4684, allocations: 145.5 kB / 383.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4684, allocations: 4 kB / 383.5 MB, free: 10.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003507/0.4688, allocations: 48.72 kB / 383.6 MB, free: 10.62 MB / 318.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.0002511/0.4691, allocations: 100.8 kB / 383.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006019/0.4697, allocations: 175.1 kB / 383.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4697, allocations: 0 / 383.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002552/0.47, allocations: 81.94 kB / 383.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.4704, allocations: 30.12 kB / 383.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.4715, allocations: 365 kB / 384.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.472, allocations: 0.734 MB / 385 MB, free: 9.527 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000195/0.4722, allocations: 36.19 kB / 385.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.4723, allocations: 25.67 kB / 385.1 MB, free: 9.512 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4723, allocations: 4 kB / 385.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of Templates: time 0.008428/0.4807, allocations: 2.117 MB / 387.2 MB, free: 9.359 MB / 318.1 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)