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.001129/0.001129, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.536/1.536, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001321/0.001321, allocations: 55.92 kB / 278.7 MB, free: 12.4 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2637, allocations: 46.63 MB / 325.3 MB, free: 1.887 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004488/0.2682, allocations: 1.996 MB / 327.3 MB, free: 316 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.2704, allocations: 1.053 MB / 328.3 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.2705, allocations: 2.188 kB / 328.3 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.2716, allocations: 299.9 kB / 328.6 MB, free: 15.32 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004796/0.2721, allocations: 199.5 kB / 328.8 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000731/0.2729, allocations: 259.9 kB / 329.1 MB, free: 15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005061/0.2734, allocations: 347.7 kB / 329.4 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.2736, allocations: 62.27 kB / 329.5 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.2738, allocations: 132.8 kB / 329.6 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.274, allocations: 154 kB / 329.8 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.647e-05/0.2741, allocations: 21.59 kB / 329.8 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002066/0.2743, allocations: 77.22 kB / 329.9 MB, free: 14.57 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.2744, allocations: 85.33 kB / 329.9 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.2746, allocations: 121.3 kB / 330.1 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005297/0.2751, allocations: 350.2 kB / 330.4 MB, free: 14.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2751, allocations: 0 / 330.4 MB, free: 14.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2752, allocations: 0 / 330.4 MB, free: 14.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.2752, allocations: 1.156 kB / 330.4 MB, free: 14.18 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.001228/0.2764, allocations: 0.6557 MB / 331.1 MB, free: 13.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.2765, allocations: 13.47 kB / 331.1 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.2766, allocations: 32.62 kB / 331.1 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005815/0.2772, allocations: 328.9 kB / 331.4 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.2772, allocations: 8.969 kB / 331.4 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.046e-05/0.2772, allocations: 20.27 kB / 331.5 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003727/0.2776, allocations: 143 kB / 331.6 MB, free: 13.1 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2776, allocations: 0 / 331.6 MB, free: 13.1 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.2777, allocations: 9.047 kB / 331.6 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.2777, allocations: 3.312 kB / 331.6 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002026/0.2779, allocations: 76.14 kB / 331.7 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000823/0.2787, allocations: 493 kB / 332.2 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.2791, allocations: 136.6 kB / 332.3 MB, free: 12.53 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.2792, allocations: 47.69 kB / 332.3 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.2793, allocations: 2.25 kB / 332.3 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.2795, allocations: 117.3 kB / 332.5 MB, free: 12.41 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 4.609e-06/0.2795, allocations: 0 / 332.5 MB, free: 12.41 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005509/0.2801, allocations: 218.9 kB / 332.7 MB, free: 12.29 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.773e-05/0.2802, allocations: 113 kB / 332.8 MB, free: 12.15 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005147/0.2807, allocations: 432.5 kB / 333.2 MB, free: 11.8 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.2807, allocations: 29.7 kB / 333.2 MB, free: 11.76 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.2809, allocations: 168 kB / 333.4 MB, free: 11.59 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.2809, allocations: 43.45 kB / 333.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.281e-05/0.281, allocations: 41.7 kB / 333.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2812, allocations: 338.8 kB / 333.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.2813, allocations: 47.97 kB / 333.9 MB, free: 11.12 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.2814, allocations: 97.98 kB / 334 MB, free: 11 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.2817, allocations: 110.5 kB / 334.1 MB, free: 10.88 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2817, allocations: 0 / 334.1 MB, free: 10.88 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000318/0.282, allocations: 173.2 kB / 334.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.282, allocations: 11.92 kB / 334.2 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.282, allocations: 3.938 kB / 334.3 MB, free: 10.69 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.2821, allocations: 8.062 kB / 334.3 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2822, allocations: 16 kB / 334.3 MB, free: 10.67 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2822, allocations: 7.984 kB / 334.3 MB, free: 10.66 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.51e-05/0.2823, allocations: 15.84 kB / 334.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.2823, allocations: 11.94 kB / 334.3 MB, free: 10.63 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.0001608/0.2825, allocations: 167.6 kB / 334.5 MB, free: 10.46 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.2826, allocations: 31.56 kB / 334.5 MB, free: 10.43 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.56e-05/0.2826, allocations: 38.94 kB / 334.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2826, allocations: 4 kB / 334.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.2827, allocations: 0 / 334.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2827, allocations: 0 / 334.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.2829, allocations: 293.5 kB / 334.8 MB, free: 10.05 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.283, allocations: 0 / 334.8 MB, free: 10.05 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.248e-05/0.283, allocations: 23.92 kB / 334.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.283, allocations: 3.938 kB / 334.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.283, allocations: 0 / 334.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.283, allocations: 4 kB / 334.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.283, allocations: 0 / 334.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.2834, allocations: 205.3 kB / 335.1 MB, free: 9.797 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.2835, allocations: 104.7 kB / 335.2 MB, free: 9.676 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.623e-05/0.2836, allocations: 11.92 kB / 335.2 MB, free: 9.664 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.917e-05/0.2836, allocations: 11.94 kB / 335.2 MB, free: 9.652 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.491e-05/0.2837, allocations: 11.98 kB / 335.2 MB, free: 9.641 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.2837, allocations: 11.98 kB / 335.2 MB, free: 9.629 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0003453/0.2841, allocations: 315 kB / 335.5 MB, free: 9.324 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2841, allocations: 0 / 335.5 MB, free: 9.324 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.2844, allocations: 55.98 kB / 335.6 MB, free: 9.27 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.00107/0.2855, allocations: 422.2 kB / 336 MB, free: 8.855 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00034/0.2858, allocations: 127.8 kB / 336.1 MB, free: 8.73 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2858, allocations: 0 / 336.1 MB, free: 8.73 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.286, allocations: 68.03 kB / 336.2 MB, free: 8.664 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.2864, allocations: 73.73 kB / 336.3 MB, free: 8.586 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007992/0.2872, allocations: 0.4937 MB / 336.7 MB, free: 8.066 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.2877, allocations: 0.7675 MB / 337.5 MB, free: 7.273 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.2878, allocations: 50.25 kB / 337.6 MB, free: 7.223 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.319e-05/0.2879, allocations: 27.44 kB / 337.6 MB, free: 7.199 MB / 270.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2879, allocations: 3.938 kB / 337.6 MB, free: 7.195 MB / 270.1 MB Notification: Performance of Templates: time 0.00843/0.2963, allocations: 3.828 MB / 341.4 MB, free: 3.363 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (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)