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.001457/0.001457, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001855/0.001855, allocations: 195 kB / 16.14 MB, free: 6.711 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.425/1.425, allocations: 205.1 MB / 222 MB, free: 4.746 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.001077/0.001077, allocations: 52.25 kB / 278 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2789, allocations: 46.63 MB / 324.7 MB, free: 2.16 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003178/0.2821, allocations: 1.872 MB / 326.5 MB, free: 0.6875 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.2833, allocations: 0.6536 MB / 327.2 MB, free: 176 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.2834, allocations: 6.562 kB / 327.2 MB, free: 172 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.2836, allocations: 25.17 kB / 327.2 MB, free: 148 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.2837, allocations: 27.12 kB / 327.2 MB, free: 124 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.2841, allocations: 65.73 kB / 327.3 MB, free: 76 kB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.2843, allocations: 168.2 kB / 327.5 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.2845, allocations: 66.42 kB / 327.5 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2846, allocations: 70.53 kB / 327.6 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.2848, allocations: 83.17 kB / 327.7 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.2848, allocations: 10 kB / 327.7 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.138e-05/0.2849, allocations: 11.53 kB / 327.7 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.285, allocations: 46.47 kB / 327.8 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2851, allocations: 88.03 kB / 327.8 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.2853, allocations: 166.3 kB / 328 MB, free: 15.61 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2854, allocations: 1.375 kB / 328 MB, free: 15.61 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2854, allocations: 0 / 328 MB, free: 15.61 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2854, allocations: 0 / 328 MB, free: 15.61 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.0009648/0.2863, allocations: 0.5128 MB / 328.5 MB, free: 15.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.2864, allocations: 9.188 kB / 328.5 MB, free: 15.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.203e-05/0.2865, allocations: 27.81 kB / 328.6 MB, free: 15.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.2868, allocations: 232.9 kB / 328.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.2868, allocations: 23.11 kB / 328.8 MB, free: 14.85 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.2868, allocations: 19.2 kB / 328.8 MB, free: 14.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004294/0.2873, allocations: 213.8 kB / 329 MB, free: 14.69 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2873, allocations: 0 / 329 MB, free: 14.69 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.2873, allocations: 6.062 kB / 329 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.2874, allocations: 9.781 kB / 329 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003433/0.2877, allocations: 137.3 kB / 329.2 MB, free: 14.62 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.2888, allocations: 0.7832 MB / 330 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006749/0.2895, allocations: 192.3 kB / 330.1 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.2897, allocations: 60.94 kB / 330.2 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.2898, allocations: 2.125 kB / 330.2 MB, free: 13.77 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003322/0.2901, allocations: 151.4 kB / 330.4 MB, free: 13.65 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.2901, allocations: 0 / 330.4 MB, free: 13.65 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006272/0.2907, allocations: 248.6 kB / 330.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/0.2908, allocations: 84.45 kB / 330.7 MB, free: 13.42 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.291, allocations: 217.1 kB / 330.9 MB, free: 13.26 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.2911, allocations: 35.7 kB / 330.9 MB, free: 13.22 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.576e-05/0.2912, allocations: 143.5 kB / 331.1 MB, free: 13.09 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.2912, allocations: 33.45 kB / 331.1 MB, free: 13.06 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-05/0.2913, allocations: 56.03 kB / 331.2 MB, free: 13.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2914, allocations: 339 kB / 331.5 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.2916, allocations: 65.83 kB / 331.6 MB, free: 12.66 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.2918, allocations: 134.4 kB / 331.7 MB, free: 12.54 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003715/0.2922, allocations: 212.7 kB / 331.9 MB, free: 12.38 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2922, allocations: 3.938 kB / 331.9 MB, free: 12.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004963/0.2927, allocations: 246.2 kB / 332.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.2928, allocations: 6.844 kB / 332.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2928, allocations: 1.406 kB / 332.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.2928, allocations: 3.594 kB / 332.1 MB, free: 12.25 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.293, allocations: 43.34 kB / 332.2 MB, free: 12.23 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.293, allocations: 4.438 kB / 332.2 MB, free: 12.23 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.2932, allocations: 41 kB / 332.2 MB, free: 12.21 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.2932, allocations: 15.84 kB / 332.3 MB, free: 12.2 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.0001385/0.2933, allocations: 148.5 kB / 332.4 MB, free: 12.06 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.2934, allocations: 16.5 kB / 332.4 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.2937, allocations: 134.1 kB / 332.5 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.2937, allocations: 2.312 kB / 332.5 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.2937, allocations: 1.156 kB / 332.5 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.2937, allocations: 5.5 kB / 332.6 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000652/0.2944, allocations: 473.2 kB / 333 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2944, allocations: 1.219 kB / 333 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.2945, allocations: 28.33 kB / 333 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2945, allocations: 1.531 kB / 333 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.2945, allocations: 6.141 kB / 333.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2945, allocations: 5.031 kB / 333.1 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2946, allocations: 9.5 kB / 333.1 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003989/0.295, allocations: 285.4 kB / 333.3 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.322e-05/0.295, allocations: 92.86 kB / 333.4 MB, free: 11.1 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.2951, allocations: 11.94 kB / 333.4 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.2952, allocations: 23.97 kB / 333.5 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.619e-05/0.2953, allocations: 23.97 kB / 333.5 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.2953, allocations: 4 kB / 333.5 MB, free: 11.04 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.2955, allocations: 148.6 kB / 333.6 MB, free: 10.89 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2955, allocations: 0 / 333.6 MB, free: 10.89 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000292/0.2958, allocations: 39.91 kB / 333.7 MB, free: 10.86 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.0001621/0.2959, allocations: 107.2 kB / 333.8 MB, free: 10.74 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000391/0.2963, allocations: 175.8 kB / 334 MB, free: 10.57 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2963, allocations: 0 / 334 MB, free: 10.57 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.2965, allocations: 75.89 kB / 334 MB, free: 10.5 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.2969, allocations: 23.98 kB / 334.1 MB, free: 10.47 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006853/0.2976, allocations: 427.7 kB / 334.5 MB, free: 10.03 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.2979, allocations: 0.7284 MB / 335.2 MB, free: 9.273 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.298, allocations: 37.52 kB / 335.2 MB, free: 9.238 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.856e-05/0.2981, allocations: 15.44 kB / 335.3 MB, free: 9.223 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2981, allocations: 4 kB / 335.3 MB, free: 9.219 MB / 270.1 MB Notification: Performance of Templates: time 0.005119/0.3032, allocations: 1.869 MB / 337.1 MB, free: 7.352 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)