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.001938/0.001939, allocations: 111.5 kB / 17.06 MB, free: 6.102 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.001753/0.001753, allocations: 200 kB / 18 MB, free: 5.18 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.478/1.478, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001318/0.001318, allocations: 52.39 kB / 327.8 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1516, allocations: 46.62 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004087/0.1558, allocations: 1.813 MB / 376.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1572, allocations: 0.6667 MB / 377 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.1573, allocations: 4 kB / 377 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.1575, allocations: 35.61 kB / 377 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.1577, allocations: 31.72 kB / 377 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.1581, allocations: 83.77 kB / 377.1 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003042/0.1584, allocations: 175.5 kB / 377.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002345/0.1586, allocations: 74.62 kB / 377.3 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.1588, allocations: 79.62 kB / 377.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.159, allocations: 83.61 kB / 377.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.159, allocations: 12 kB / 377.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.706e-05/0.1591, allocations: 28 kB / 377.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.592e-05/0.1592, allocations: 47.83 kB / 377.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1594, allocations: 91.41 kB / 377.7 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.1597, allocations: 203.2 kB / 377.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1597, allocations: 0 / 377.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1597, allocations: 0 / 377.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1597, allocations: 0 / 377.9 MB, free: 1.141 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.001108/0.1608, allocations: 0.4986 MB / 378.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1609, allocations: 12.03 kB / 378.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.795e-05/0.161, allocations: 24.73 kB / 378.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.1613, allocations: 243.8 kB / 378.7 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.1613, allocations: 12.38 kB / 378.7 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.1614, allocations: 16.38 kB / 378.7 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.1618, allocations: 213.6 kB / 378.9 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1618, allocations: 0 / 378.9 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.1618, allocations: 4 kB / 378.9 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/0.1619, allocations: 15.84 kB / 378.9 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3521/0.514, allocations: 136.8 kB / 379 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001469/0.5155, allocations: 0.7829 MB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007023/0.5162, allocations: 191.1 kB / 380 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.5164, allocations: 63.33 kB / 380.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.5165, allocations: 3.094 kB / 380.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.5168, allocations: 151.5 kB / 380.2 MB, free: 12.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.214e-06/0.5168, allocations: 0.7656 kB / 380.2 MB, free: 12.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008004/0.5176, allocations: 243.9 kB / 380.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/0.5177, allocations: 88.33 kB / 380.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.518, allocations: 217.5 kB / 380.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.518, allocations: 35.06 kB / 380.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.492e-05/0.5181, allocations: 137.5 kB / 380.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.5182, allocations: 37.59 kB / 381 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.5183, allocations: 57.86 kB / 381 MB, free: 12.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.5184, allocations: 335.9 kB / 381.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.5186, allocations: 66.94 kB / 381.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.5188, allocations: 131.6 kB / 381.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.5193, allocations: 220 kB / 381.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.5193, allocations: 0.6875 kB / 381.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005855/0.5199, allocations: 244.2 kB / 382 MB, free: 11.67 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.5199, allocations: 6.375 kB / 382 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.5199, allocations: 6.156 kB / 382 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.884e-05/0.52, allocations: 4.344 kB / 382 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.5202, allocations: 39.22 kB / 382.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.5202, allocations: 4.156 kB / 382.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.5204, allocations: 38.38 kB / 382.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.05e-05/0.5205, allocations: 11.42 kB / 382.1 MB, free: 11.66 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.000163/0.5206, allocations: 157.8 kB / 382.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.632e-05/0.5207, allocations: 16.69 kB / 382.3 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003507/0.521, allocations: 130.7 kB / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.5211, allocations: 2.438 kB / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.5211, allocations: 5.203 kB / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.5211, allocations: 0.75 kB / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008407/0.5219, allocations: 481.9 kB / 382.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.522, allocations: 2.719 kB / 382.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.5221, allocations: 17.19 kB / 382.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.5221, allocations: 5.312 kB / 382.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.5221, allocations: 8.031 kB / 382.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.5222, allocations: 1.594 kB / 382.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.5222, allocations: 1.094 kB / 382.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005297/0.5227, allocations: 292.1 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.069e-05/0.5228, allocations: 90.97 kB / 383.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.5228, allocations: 9.984 kB / 383.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.523, allocations: 19.44 kB / 383.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.5231, allocations: 23.61 kB / 383.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.5232, allocations: 5.672 kB / 383.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001856/0.5234, allocations: 150.2 kB / 383.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5234, allocations: 1.406 kB / 383.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000369/0.5238, allocations: 42.69 kB / 383.5 MB, free: 10.66 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.0002397/0.524, allocations: 109 kB / 383.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004959/0.5245, allocations: 170.9 kB / 383.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5245, allocations: 0 / 383.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.5247, allocations: 77.59 kB / 383.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.5251, allocations: 36.88 kB / 383.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008244/0.526, allocations: 360.1 kB / 384.3 MB, free: 10.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.5262, allocations: 0.7355 MB / 385 MB, free: 9.562 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.5263, allocations: 31.58 kB / 385 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.311e-05/0.5264, allocations: 25.08 kB / 385.1 MB, free: 9.547 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.5264, allocations: 0 / 385.1 MB, free: 9.547 MB / 318.1 MB Notification: Performance of Templates: time 0.007441/0.5338, allocations: 2.188 MB / 387.3 MB, free: 9.379 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)