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.001054/0.001054, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001338/0.001338, allocations: 172.7 kB / 15.95 MB, free: 208 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.452/1.452, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004504/0.0004507, allocations: 10.81 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2319, allocations: 47.58 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001821/0.2338, allocations: 1.492 MB / 328 MB, free: 208 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.2349, allocations: 0.6261 MB / 328.6 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2351, allocations: 6.406 kB / 328.6 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.2352, allocations: 26.33 kB / 328.6 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.2353, allocations: 22.56 kB / 328.6 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.2356, allocations: 61.91 kB / 328.7 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.2358, allocations: 155.8 kB / 328.8 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.236, allocations: 60.17 kB / 328.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.2361, allocations: 59.31 kB / 329 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.2362, allocations: 69.73 kB / 329 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.283e-05/0.2363, allocations: 5.594 kB / 329 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.205e-05/0.2363, allocations: 12.38 kB / 329 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.41e-05/0.2364, allocations: 29.19 kB / 329.1 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.129e-05/0.2365, allocations: 56.73 kB / 329.1 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.2366, allocations: 118.7 kB / 329.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2366, allocations: 0 / 329.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2367, allocations: 0 / 329.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2367, allocations: 0 / 329.2 MB, free: 15.24 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.0008819/0.2376, allocations: 499.3 kB / 329.7 MB, free: 14.78 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2376, allocations: 8.531 kB / 329.7 MB, free: 14.78 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.271e-05/0.2377, allocations: 18.84 kB / 329.8 MB, free: 14.77 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.238, allocations: 231.8 kB / 330 MB, free: 14.53 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.238, allocations: 15.7 kB / 330 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.2381, allocations: 18.12 kB / 330 MB, free: 14.51 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004489/0.2385, allocations: 219.4 kB / 330.2 MB, free: 14.36 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.2385, allocations: 0 / 330.2 MB, free: 14.36 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.2386, allocations: 6.156 kB / 330.2 MB, free: 14.35 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.775e-05/0.2386, allocations: 6.062 kB / 330.2 MB, free: 14.35 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003498/0.239, allocations: 153.1 kB / 330.4 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.2401, allocations: 0.7976 MB / 331.2 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006084/0.2407, allocations: 214.7 kB / 331.4 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.2409, allocations: 59.39 kB / 331.5 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.708e-05/0.2409, allocations: 7.734 kB / 331.5 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.2412, allocations: 153.4 kB / 331.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.2412, allocations: 1.094 kB / 331.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005988/0.2418, allocations: 258.2 kB / 331.9 MB, free: 13.18 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.2419, allocations: 79.39 kB / 332 MB, free: 13.08 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.2421, allocations: 225.1 kB / 332.2 MB, free: 12.91 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.2422, allocations: 35.64 kB / 332.2 MB, free: 12.87 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.853e-05/0.2423, allocations: 130.1 kB / 332.3 MB, free: 12.75 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.2423, allocations: 42.53 kB / 332.4 MB, free: 12.71 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.2423, allocations: 4.875 kB / 332.4 MB, free: 12.71 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.2425, allocations: 331.8 kB / 332.7 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.2426, allocations: 76.25 kB / 332.8 MB, free: 12.35 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2428, allocations: 129.1 kB / 332.9 MB, free: 12.24 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.243, allocations: 91.67 kB / 333 MB, free: 12.2 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.243, allocations: 3.938 kB / 333 MB, free: 12.19 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004699/0.2435, allocations: 252.2 kB / 333.2 MB, free: 12.06 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.2435, allocations: 9.422 kB / 333.3 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2436, allocations: 2.344 kB / 333.3 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.2436, allocations: 8.156 kB / 333.3 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.2438, allocations: 41.8 kB / 333.3 MB, free: 12.04 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.2438, allocations: 3.781 kB / 333.3 MB, free: 12.04 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.244, allocations: 38.91 kB / 333.3 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.244, allocations: 14.91 kB / 333.4 MB, free: 12.02 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.0001565/0.2442, allocations: 150.3 kB / 333.5 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.2442, allocations: 15.69 kB / 333.5 MB, free: 11.87 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002548/0.2444, allocations: 137.9 kB / 333.7 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.2445, allocations: 2.344 kB / 333.7 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.2445, allocations: 0.9688 kB / 333.7 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2445, allocations: 1.188 kB / 333.7 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006188/0.2451, allocations: 480.7 kB / 334.1 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.2451, allocations: 5.172 kB / 334.1 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.2453, allocations: 26.36 kB / 334.2 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.2453, allocations: 1.125 kB / 334.2 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.2453, allocations: 2.094 kB / 334.2 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.2453, allocations: 1.094 kB / 334.2 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2453, allocations: 1.188 kB / 334.2 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005029/0.2458, allocations: 303.1 kB / 334.5 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.435e-05/0.2459, allocations: 108.7 kB / 334.6 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.512e-05/0.246, allocations: 4 kB / 334.6 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2461, allocations: 23.98 kB / 334.6 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.611e-05/0.2462, allocations: 19.97 kB / 334.6 MB, free: 10.91 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.2462, allocations: 7.984 kB / 334.6 MB, free: 10.91 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.2464, allocations: 148.4 kB / 334.8 MB, free: 10.76 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2464, allocations: 0 / 334.8 MB, free: 10.76 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003405/0.2467, allocations: 39.95 kB / 334.8 MB, free: 10.72 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.0001923/0.2469, allocations: 119.2 kB / 334.9 MB, free: 10.6 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004269/0.2474, allocations: 175.7 kB / 335.1 MB, free: 10.43 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2474, allocations: 0 / 335.1 MB, free: 10.43 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.2476, allocations: 84.39 kB / 335.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.248, allocations: 24.12 kB / 335.2 MB, free: 10.32 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008149/0.2488, allocations: 407.5 kB / 335.6 MB, free: 9.895 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.2492, allocations: 0.7364 MB / 336.3 MB, free: 9.133 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.2494, allocations: 29.53 kB / 336.4 MB, free: 9.105 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.185e-05/0.2494, allocations: 31.36 kB / 336.4 MB, free: 9.074 MB / 270.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2494, allocations: 0 / 336.4 MB, free: 9.074 MB / 270.1 MB Notification: Performance of Templates: time 0.005752/0.2552, allocations: 1.794 MB / 338.2 MB, free: 7.281 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)