Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009532/0.0009534, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009683/0.0009685, allocations: 177.3 kB / 15.95 MB, free: 216 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.653/1.653, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005355/0.0005355, allocations: 10.81 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2844, allocations: 47.58 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002347/0.2868, allocations: 1.634 MB / 328.1 MB, free: 132 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.2884, allocations: 0.9494 MB / 329 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.2886, allocations: 6 kB / 329 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007892/0.2894, allocations: 269.1 kB / 329.3 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000359/0.2897, allocations: 159.3 kB / 329.4 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006679/0.2904, allocations: 228.3 kB / 329.7 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002978/0.2907, allocations: 205.9 kB / 329.9 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.2909, allocations: 51.48 kB / 329.9 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.2911, allocations: 119.4 kB / 330 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.2912, allocations: 123 kB / 330.2 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.651e-05/0.2913, allocations: 9.891 kB / 330.2 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.2914, allocations: 46.88 kB / 330.2 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.2915, allocations: 64.08 kB / 330.3 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.077e-05/0.2916, allocations: 72.3 kB / 330.3 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.2919, allocations: 261.5 kB / 330.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.2919, allocations: 0 / 330.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.292, allocations: 0 / 330.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.292, allocations: 0 / 330.6 MB, free: 14.42 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000916/0.2929, allocations: 0.6179 MB / 331.2 MB, free: 13.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.2929, allocations: 10.03 kB / 331.2 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.099e-05/0.293, allocations: 30.69 kB / 331.3 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.2935, allocations: 312.2 kB / 331.6 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.2935, allocations: 9.969 kB / 331.6 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.2935, allocations: 18.55 kB / 331.6 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.2938, allocations: 145.9 kB / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.2938, allocations: 0 / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.2939, allocations: 9.172 kB / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.2939, allocations: 2.594 kB / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.2941, allocations: 67.7 kB / 331.8 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007574/0.2948, allocations: 0.4963 MB / 332.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/0.2952, allocations: 130.3 kB / 332.4 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.2952, allocations: 6.688 kB / 332.4 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.2955, allocations: 107.8 kB / 332.5 MB, free: 12.72 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.2955, allocations: 0 / 332.5 MB, free: 12.72 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005217/0.296, allocations: 218.6 kB / 332.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.178e-05/0.2961, allocations: 104.9 kB / 332.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005224/0.2966, allocations: 427.9 kB / 333.3 MB, free: 12.22 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.2967, allocations: 35.14 kB / 333.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.2968, allocations: 169.4 kB / 333.5 MB, free: 12.03 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.664e-05/0.2969, allocations: 41.19 kB / 333.5 MB, free: 12 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.097e-06/0.2969, allocations: 5.438 kB / 333.5 MB, free: 11.99 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2971, allocations: 339 kB / 333.9 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.2972, allocations: 41.7 kB / 333.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.2973, allocations: 103.8 kB / 334 MB, free: 11.55 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.2975, allocations: 43.31 kB / 334 MB, free: 11.53 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2975, allocations: 1.094 kB / 334 MB, free: 11.53 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003234/0.2978, allocations: 179.4 kB / 334.2 MB, free: 11.43 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2978, allocations: 5.281 kB / 334.2 MB, free: 11.43 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2978, allocations: 5.281 kB / 334.2 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.2979, allocations: 2.219 kB / 334.2 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.298, allocations: 25.89 kB / 334.3 MB, free: 11.41 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.298, allocations: 5.062 kB / 334.3 MB, free: 11.41 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.2981, allocations: 17.36 kB / 334.3 MB, free: 11.39 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.2982, allocations: 12 kB / 334.3 MB, free: 11.38 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001783/0.2983, allocations: 167.6 kB / 334.4 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/0.2984, allocations: 39.58 kB / 334.5 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.674e-05/0.2985, allocations: 34.94 kB / 334.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2985, allocations: 0 / 334.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.2985, allocations: 0 / 334.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2985, allocations: 0 / 334.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002571/0.2988, allocations: 297.4 kB / 334.8 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2988, allocations: 0 / 334.8 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-05/0.2988, allocations: 15.94 kB / 334.8 MB, free: 10.78 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2988, allocations: 7.891 kB / 334.8 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2988, allocations: 7.984 kB / 334.8 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2989, allocations: 0 / 334.8 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2989, allocations: 4 kB / 334.8 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.2992, allocations: 204.7 kB / 335 MB, free: 10.54 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.2993, allocations: 108.7 kB / 335.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.273e-05/0.2994, allocations: 7.953 kB / 335.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.76e-05/0.2995, allocations: 11.98 kB / 335.2 MB, free: 10.39 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.2995, allocations: 15.98 kB / 335.2 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.2996, allocations: 8 kB / 335.2 MB, free: 10.37 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003283/0.2999, allocations: 315 kB / 335.5 MB, free: 10.07 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2999, allocations: 3.938 kB / 335.5 MB, free: 10.06 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005245/0.3004, allocations: 55.92 kB / 335.6 MB, free: 10.01 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009543/0.3014, allocations: 422.2 kB / 336 MB, free: 9.594 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002965/0.3017, allocations: 123.9 kB / 336.1 MB, free: 9.473 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3017, allocations: 0 / 336.1 MB, free: 9.473 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.3018, allocations: 59.92 kB / 336.2 MB, free: 9.414 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.3022, allocations: 69.36 kB / 336.2 MB, free: 9.34 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007678/0.303, allocations: 0.5197 MB / 336.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.3034, allocations: 0.7796 MB / 337.5 MB, free: 7.988 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.3035, allocations: 42.25 kB / 337.6 MB, free: 7.949 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.305e-05/0.3036, allocations: 35.42 kB / 337.6 MB, free: 7.918 MB / 270.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3036, allocations: 0 / 337.6 MB, free: 7.918 MB / 270.1 MB Notification: Performance of Templates: time 0.007372/0.3109, allocations: 3.492 MB / 341.1 MB, free: 4.422 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) Environment - environmentSimulation: