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.001031/0.001031, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001149/0.001149, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.539/1.539, allocations: 205.1 MB / 222 MB, free: 4.754 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.001126/0.001126, allocations: 47.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3368, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003287/0.3401, allocations: 1.864 MB / 326.5 MB, free: 480 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3415, allocations: 0.6584 MB / 327.2 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.3416, allocations: 2.562 kB / 327.2 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.3418, allocations: 23.14 kB / 327.2 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.3419, allocations: 30.81 kB / 327.2 MB, free: 15.9 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.3422, allocations: 67.22 kB / 327.3 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002711/0.3425, allocations: 164.6 kB / 327.5 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.3428, allocations: 70.73 kB / 327.5 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.3429, allocations: 65.27 kB / 327.6 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.3431, allocations: 84.22 kB / 327.7 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.894e-05/0.3432, allocations: 9.312 kB / 327.7 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.3433, allocations: 24.77 kB / 327.7 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.3434, allocations: 41.56 kB / 327.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.3435, allocations: 84.09 kB / 327.8 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.3438, allocations: 162.7 kB / 328 MB, free: 15.39 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3438, allocations: 3.984 kB / 328 MB, free: 15.39 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3438, allocations: 0 / 328 MB, free: 15.39 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3438, allocations: 1.188 kB / 328 MB, free: 15.39 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.001105/0.3449, allocations: 0.5 MB / 328.5 MB, free: 14.91 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.345, allocations: 13.66 kB / 328.5 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.59e-05/0.3451, allocations: 27.59 kB / 328.5 MB, free: 14.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.3454, allocations: 245.2 kB / 328.8 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.3454, allocations: 11.94 kB / 328.8 MB, free: 14.63 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.3455, allocations: 19.09 kB / 328.8 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.346, allocations: 217.1 kB / 329 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.346, allocations: 0 / 329 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.346, allocations: 6.438 kB / 329 MB, free: 14.46 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.3461, allocations: 13.3 kB / 329 MB, free: 14.46 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.3465, allocations: 142.5 kB / 329.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.3477, allocations: 0.7786 MB / 330 MB, free: 13.68 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007042/0.3485, allocations: 191.7 kB / 330.2 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3487, allocations: 60.98 kB / 330.2 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.3487, allocations: 3.656 kB / 330.2 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/0.349, allocations: 150.1 kB / 330.4 MB, free: 13.43 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.604e-06/0.3491, allocations: 1.156 kB / 330.4 MB, free: 13.43 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006855/0.3497, allocations: 247.5 kB / 330.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/0.3498, allocations: 84.34 kB / 330.7 MB, free: 13.2 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002506/0.3501, allocations: 221.8 kB / 330.9 MB, free: 13.03 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.3501, allocations: 35.97 kB / 330.9 MB, free: 12.99 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3502, allocations: 142.1 kB / 331.1 MB, free: 12.86 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.3503, allocations: 33.52 kB / 331.1 MB, free: 12.83 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-05/0.3504, allocations: 52.58 kB / 331.2 MB, free: 12.8 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3506, allocations: 339.7 kB / 331.5 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.3507, allocations: 65.23 kB / 331.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.351, allocations: 138.4 kB / 331.7 MB, free: 12.31 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003857/0.3514, allocations: 211.7 kB / 331.9 MB, free: 12.16 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.3514, allocations: 1.125 kB / 331.9 MB, free: 12.16 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004915/0.3519, allocations: 249.6 kB / 332.1 MB, free: 12.02 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3519, allocations: 5.719 kB / 332.1 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.3519, allocations: 6.328 kB / 332.2 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.352, allocations: 3.469 kB / 332.2 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.3521, allocations: 32.08 kB / 332.2 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.3522, allocations: 7.344 kB / 332.2 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.3523, allocations: 44.72 kB / 332.2 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.3524, allocations: 13.03 kB / 332.3 MB, free: 11.98 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.0001579/0.3525, allocations: 148.7 kB / 332.4 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.21e-05/0.3526, allocations: 15.12 kB / 332.4 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.3529, allocations: 135.5 kB / 332.5 MB, free: 11.74 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.3529, allocations: 2.25 kB / 332.5 MB, free: 11.74 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.3529, allocations: 4 kB / 332.6 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3529, allocations: 1.094 kB / 332.6 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006448/0.3535, allocations: 482.4 kB / 333 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3536, allocations: 1.094 kB / 333 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.3537, allocations: 20.72 kB / 333 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3537, allocations: 5.281 kB / 333 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.3537, allocations: 10.28 kB / 333.1 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3537, allocations: 5 kB / 333.1 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.3537, allocations: 9.328 kB / 333.1 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004437/0.3542, allocations: 280.9 kB / 333.3 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.725e-05/0.3543, allocations: 100.8 kB / 333.4 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.3543, allocations: 0 / 333.4 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.3545, allocations: 19.92 kB / 333.5 MB, free: 10.9 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.912e-05/0.3546, allocations: 23.97 kB / 333.5 MB, free: 10.88 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.3546, allocations: 11.98 kB / 333.5 MB, free: 10.87 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.3548, allocations: 144.6 kB / 333.6 MB, free: 10.73 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3548, allocations: 0 / 333.6 MB, free: 10.73 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.3551, allocations: 35.91 kB / 333.7 MB, free: 10.69 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.0001957/0.3553, allocations: 111.2 kB / 333.8 MB, free: 10.57 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004135/0.3557, allocations: 175.8 kB / 334 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3557, allocations: 0 / 334 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.3559, allocations: 79.89 kB / 334 MB, free: 10.32 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/0.3563, allocations: 27.98 kB / 334.1 MB, free: 10.3 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007618/0.357, allocations: 423.7 kB / 334.5 MB, free: 9.855 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.3574, allocations: 0.7284 MB / 335.2 MB, free: 9.102 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.3576, allocations: 37.52 kB / 335.2 MB, free: 9.066 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.3576, allocations: 19.44 kB / 335.3 MB, free: 9.047 MB / 270.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3576, allocations: 0 / 335.3 MB, free: 9.047 MB / 270.1 MB Notification: Performance of Templates: time 0.005238/0.3629, allocations: 1.866 MB / 337.1 MB, free: 7.184 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.IntegerNetwork1.makefile (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)