Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009841/0.0009841, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.00103/0.00103, allocations: 182.2 kB / 17.19 MB, free: 5.906 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.46/1.46, allocations: 205.4 MB / 223.4 MB, free: 5.535 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.0004302/0.0004303, allocations: 8 kB / 280.1 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2452, allocations: 47.6 MB / 327.7 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002011/0.2473, allocations: 1.627 MB / 329.3 MB, free: 140 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.2488, allocations: 0.9501 MB / 330.3 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.2489, allocations: 5.312 kB / 330.3 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008111/0.2497, allocations: 265.2 kB / 330.5 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004316/0.2502, allocations: 171.9 kB / 330.7 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007017/0.2509, allocations: 223.3 kB / 330.9 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.2512, allocations: 209.9 kB / 331.1 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2513, allocations: 43.88 kB / 331.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.2515, allocations: 119.2 kB / 331.3 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.2517, allocations: 119.3 kB / 331.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.2517, allocations: 6.031 kB / 331.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.2518, allocations: 46.08 kB / 331.5 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.252, allocations: 69.42 kB / 331.5 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.895e-05/0.252, allocations: 79.94 kB / 331.6 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.2523, allocations: 256.4 kB / 331.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.2524, allocations: 0 / 331.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.2524, allocations: 0.8125 kB / 331.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.2524, allocations: 0 / 331.8 MB, free: 14.43 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.0008849/0.2533, allocations: 0.6147 MB / 332.5 MB, free: 13.83 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.2533, allocations: 9 kB / 332.5 MB, free: 13.83 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/0.2534, allocations: 30.25 kB / 332.5 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.2538, allocations: 321.6 kB / 332.8 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.2538, allocations: 8.531 kB / 332.8 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.116e-05/0.2539, allocations: 11.31 kB / 332.8 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.2541, allocations: 145.8 kB / 333 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.2542, allocations: 4 kB / 333 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.2542, allocations: 1.969 kB / 333 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2542, allocations: 1.938 kB / 333 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.2544, allocations: 71.97 kB / 333.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000717/0.2551, allocations: 499.7 kB / 333.5 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/0.2554, allocations: 131.5 kB / 333.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.2554, allocations: 1.469 kB / 333.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.2557, allocations: 116.2 kB / 333.8 MB, free: 12.74 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.2557, allocations: 0 / 333.8 MB, free: 12.74 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004753/0.2561, allocations: 218.5 kB / 334 MB, free: 12.62 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.2562, allocations: 104.2 kB / 334.1 MB, free: 12.49 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004995/0.2567, allocations: 432.2 kB / 334.5 MB, free: 12.23 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.2568, allocations: 31.98 kB / 334.6 MB, free: 12.2 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2569, allocations: 167.8 kB / 334.7 MB, free: 12.05 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.2569, allocations: 42.11 kB / 334.8 MB, free: 12.01 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-06/0.257, allocations: 8.969 kB / 334.8 MB, free: 12 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.2571, allocations: 343.6 kB / 335.1 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.2572, allocations: 41.73 kB / 335.1 MB, free: 11.65 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.2573, allocations: 99.69 kB / 335.2 MB, free: 11.56 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.2575, allocations: 47.69 kB / 335.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2575, allocations: 0 / 335.3 MB, free: 11.54 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003159/0.2578, allocations: 181.1 kB / 335.5 MB, free: 11.43 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.2578, allocations: 4.938 kB / 335.5 MB, free: 11.43 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2578, allocations: 1 kB / 335.5 MB, free: 11.43 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2579, allocations: 2 kB / 335.5 MB, free: 11.43 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.258, allocations: 25.55 kB / 335.5 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.258, allocations: 7.938 kB / 335.5 MB, free: 11.41 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.2581, allocations: 19.92 kB / 335.5 MB, free: 11.39 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.2581, allocations: 4 kB / 335.5 MB, free: 11.39 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.0001581/0.2583, allocations: 171.6 kB / 335.7 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-05/0.2583, allocations: 35.56 kB / 335.7 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.851e-05/0.2584, allocations: 30.94 kB / 335.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2584, allocations: 8 kB / 335.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.2584, allocations: 0 / 335.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2585, allocations: 0 / 335.8 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002578/0.2587, allocations: 301.4 kB / 336.1 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2587, allocations: 0 / 336.1 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.847e-05/0.2588, allocations: 11.94 kB / 336.1 MB, free: 10.78 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.2588, allocations: 3.953 kB / 336.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.2588, allocations: 7.984 kB / 336.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2588, allocations: 4 kB / 336.1 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2588, allocations: 0 / 336.1 MB, free: 10.76 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.2591, allocations: 200.7 kB / 336.3 MB, free: 10.55 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.075e-05/0.2592, allocations: 116.7 kB / 336.4 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.2593, allocations: 7.953 kB / 336.4 MB, free: 10.41 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.522e-05/0.2594, allocations: 8 kB / 336.4 MB, free: 10.4 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.215e-05/0.2594, allocations: 19.97 kB / 336.4 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.2595, allocations: 8 kB / 336.4 MB, free: 10.37 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000306/0.2598, allocations: 315 kB / 336.8 MB, free: 10.07 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2598, allocations: 4 kB / 336.8 MB, free: 10.06 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.2601, allocations: 51.94 kB / 336.8 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.000917/0.261, allocations: 429.8 kB / 337.2 MB, free: 9.59 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002848/0.2613, allocations: 119.8 kB / 337.3 MB, free: 9.473 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2613, allocations: 0 / 337.3 MB, free: 9.473 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.2614, allocations: 68.03 kB / 337.4 MB, free: 9.406 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.2618, allocations: 57.39 kB / 337.5 MB, free: 9.344 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000782/0.2626, allocations: 0.5274 MB / 338 MB, free: 8.789 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.2629, allocations: 0.7796 MB / 338.8 MB, free: 7.984 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.2631, allocations: 46.25 kB / 338.8 MB, free: 7.941 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.2631, allocations: 23.44 kB / 338.8 MB, free: 7.922 MB / 270.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2631, allocations: 0 / 338.8 MB, free: 7.922 MB / 270.1 MB Notification: Performance of Templates: time 0.00716/0.2703, allocations: 3.492 MB / 342.3 MB, free: 4.426 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) Environment - environmentSimulation: