Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0009745/0.0009743, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001025/0.001025, allocations: 199.8 kB / 16.14 MB, free: 6.797 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.285/1.285, allocations: 205.1 MB / 222 MB, free: 4.766 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.001067/0.001067, allocations: 47.94 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2676, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003539/0.2712, allocations: 2.036 MB / 326.7 MB, free: 336 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.273, allocations: 1.044 MB / 327.7 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2732, allocations: 1.438 kB / 327.7 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009199/0.2741, allocations: 286.9 kB / 328 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003992/0.2745, allocations: 192.5 kB / 328.2 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.2752, allocations: 237.5 kB / 328.4 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000481/0.2757, allocations: 341.5 kB / 328.8 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001632/0.2759, allocations: 61.53 kB / 328.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.276, allocations: 126.5 kB / 329 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.2762, allocations: 140.4 kB / 329.1 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.458e-05/0.2763, allocations: 9.125 kB / 329.1 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002331/0.2765, allocations: 57.86 kB / 329.2 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.2766, allocations: 77.19 kB / 329.2 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.2768, allocations: 122.6 kB / 329.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.2773, allocations: 342.4 kB / 329.7 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2773, allocations: 0 / 329.7 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2774, allocations: 5 kB / 329.7 MB, free: 14.3 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.2774, allocations: 0 / 329.7 MB, free: 14.3 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.001271/0.2786, allocations: 0.6567 MB / 330.4 MB, free: 13.68 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.2787, allocations: 9 kB / 330.4 MB, free: 13.68 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.952e-05/0.2788, allocations: 31.88 kB / 330.4 MB, free: 13.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004567/0.2793, allocations: 329.1 kB / 330.7 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.2793, allocations: 10 kB / 330.7 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.252e-05/0.2793, allocations: 23.58 kB / 330.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003592/0.2797, allocations: 138.1 kB / 330.9 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.2797, allocations: 1.188 kB / 330.9 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.2797, allocations: 9.141 kB / 330.9 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2798, allocations: 2.312 kB / 330.9 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.2799, allocations: 68.33 kB / 331 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/0.2807, allocations: 493.7 kB / 331.4 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.2811, allocations: 139.9 kB / 331.6 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.2812, allocations: 47.94 kB / 331.6 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.2812, allocations: 2.938 kB / 331.6 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/0.2815, allocations: 117.5 kB / 331.7 MB, free: 12.54 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.462e-06/0.2815, allocations: 3.938 kB / 331.8 MB, free: 12.54 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005556/0.2821, allocations: 219.8 kB / 332 MB, free: 12.41 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/0.2822, allocations: 104.8 kB / 332.1 MB, free: 12.29 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005674/0.2827, allocations: 433.4 kB / 332.5 MB, free: 12.04 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.2828, allocations: 33.23 kB / 332.5 MB, free: 12 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.2829, allocations: 159.3 kB / 332.7 MB, free: 11.86 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.575e-05/0.283, allocations: 37.61 kB / 332.7 MB, free: 11.82 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.215e-05/0.283, allocations: 46.73 kB / 332.8 MB, free: 11.79 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2832, allocations: 343.5 kB / 333.1 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.2833, allocations: 45.34 kB / 333.1 MB, free: 11.41 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.2835, allocations: 97.98 kB / 333.2 MB, free: 11.29 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.2837, allocations: 114.6 kB / 333.4 MB, free: 11.17 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2837, allocations: 0 / 333.4 MB, free: 11.17 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002944/0.284, allocations: 177.2 kB / 333.5 MB, free: 10.99 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.284, allocations: 7.938 kB / 333.5 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.2841, allocations: 7.984 kB / 333.5 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.2841, allocations: 0 / 333.5 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.2842, allocations: 23.94 kB / 333.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.2842, allocations: 7.969 kB / 333.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2843, allocations: 23.91 kB / 333.6 MB, free: 10.92 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.2844, allocations: 4 kB / 333.6 MB, free: 10.92 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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001704/0.2845, allocations: 171.5 kB / 333.8 MB, free: 10.74 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.681e-05/0.2846, allocations: 35.55 kB / 333.8 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.245e-05/0.2847, allocations: 38.92 kB / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2847, allocations: 4 kB / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.2847, allocations: 0 / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2847, allocations: 0 / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003231/0.285, allocations: 301.5 kB / 334.1 MB, free: 10.32 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2851, allocations: 0 / 334.1 MB, free: 10.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.2851, allocations: 7.984 kB / 334.1 MB, free: 10.31 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.2851, allocations: 7.938 kB / 334.2 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.2851, allocations: 0 / 334.2 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2851, allocations: 0 / 334.2 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2851, allocations: 0 / 334.2 MB, free: 10.3 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000346/0.2855, allocations: 204.6 kB / 334.4 MB, free: 10.08 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.572e-05/0.2856, allocations: 112.7 kB / 334.5 MB, free: 9.953 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.2856, allocations: 19.86 kB / 334.5 MB, free: 9.934 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.2857, allocations: 4 kB / 334.5 MB, free: 9.93 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/0.2858, allocations: 15.98 kB / 334.5 MB, free: 9.914 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.2858, allocations: 11.98 kB / 334.5 MB, free: 9.902 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003001/0.2861, allocations: 311 kB / 334.8 MB, free: 9.602 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2861, allocations: 0 / 334.8 MB, free: 9.602 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002759/0.2864, allocations: 47.98 kB / 334.9 MB, free: 9.555 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 (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.0009954/0.2874, allocations: 426.7 kB / 335.3 MB, free: 9.137 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003355/0.2878, allocations: 119.8 kB / 335.4 MB, free: 9.02 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2878, allocations: 0 / 335.4 MB, free: 9.02 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.2879, allocations: 59.92 kB / 335.5 MB, free: 8.961 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.2884, allocations: 69.38 kB / 335.5 MB, free: 8.887 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009974/0.2894, allocations: 0.5568 MB / 336.1 MB, free: 8.305 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.2899, allocations: 0.7794 MB / 336.9 MB, free: 7.5 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.29, allocations: 46.25 kB / 336.9 MB, free: 7.453 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.657e-05/0.2901, allocations: 27.42 kB / 336.9 MB, free: 7.43 MB / 270.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2901, allocations: 0 / 336.9 MB, free: 7.43 MB / 270.1 MB Notification: Performance of Templates: time 0.007646/0.2977, allocations: 3.645 MB / 340.6 MB, free: 3.781 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)