Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001663/0.001663, 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.002495/0.002495, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.514/1.514, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.00148/0.001481, allocations: 48.27 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2635, allocations: 46.64 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003881/0.2674, allocations: 1.811 MB / 327.1 MB, free: 444 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.2694, allocations: 0.9556 MB / 328.1 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002185/0.2696, allocations: 2.219 kB / 328.1 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00077/0.2704, allocations: 166.2 kB / 328.2 MB, free: 15.59 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.0004094/0.2709, allocations: 116.1 kB / 328.3 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005219/0.2714, allocations: 160.4 kB / 328.5 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003386/0.2717, allocations: 209.1 kB / 328.7 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.2719, allocations: 25.3 kB / 328.7 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.2721, allocations: 85.88 kB / 328.8 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.2722, allocations: 85.67 kB / 328.9 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.2723, allocations: 10 kB / 328.9 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.2724, allocations: 54.62 kB / 329 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.648e-05/0.2725, allocations: 43.19 kB / 329 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.2726, allocations: 75.84 kB / 329.1 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.273, allocations: 215.8 kB / 329.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.273, allocations: 0 / 329.3 MB, free: 14.91 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.273, allocations: 5.031 kB / 329.3 MB, free: 14.9 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.273, allocations: 0 / 329.3 MB, free: 14.9 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001114/0.2742, allocations: 0.5216 MB / 329.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.2742, allocations: 13.56 kB / 329.8 MB, free: 14.38 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.2743, allocations: 21.5 kB / 329.8 MB, free: 14.37 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.2748, allocations: 261.1 kB / 330.1 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.2748, allocations: 8.406 kB / 330.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.2748, allocations: 7.969 kB / 330.1 MB, free: 14.1 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.2751, allocations: 118 kB / 330.2 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2752, allocations: 0 / 330.2 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.2752, allocations: 1.094 kB / 330.2 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2752, allocations: 2.281 kB / 330.2 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.2754, allocations: 54.09 kB / 330.3 MB, free: 13.96 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007895/0.2762, allocations: 0.6088 MB / 330.9 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.2765, allocations: 125.6 kB / 331 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.2766, allocations: 48.38 kB / 331.1 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.2766, allocations: 2.406 kB / 331.1 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.2769, allocations: 124.5 kB / 331.2 MB, free: 13.08 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.422e-06/0.2769, allocations: 0 / 331.2 MB, free: 13.08 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004764/0.2773, allocations: 169.2 kB / 331.4 MB, free: 12.98 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.898e-05/0.2774, allocations: 138.9 kB / 331.5 MB, free: 12.82 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.2778, allocations: 286.7 kB / 331.8 MB, free: 12.63 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.2778, allocations: 31.02 kB / 331.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/0.2779, allocations: 126.1 kB / 331.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.624e-05/0.2779, allocations: 28.14 kB / 332 MB, free: 12.46 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.904e-05/0.278, allocations: 33.84 kB / 332 MB, free: 12.43 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2781, allocations: 335.6 kB / 332.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-05/0.2782, allocations: 28.48 kB / 332.3 MB, free: 12.09 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.2784, allocations: 99.73 kB / 332.4 MB, free: 11.99 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.2786, allocations: 99.88 kB / 332.5 MB, free: 11.91 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2786, allocations: 1.406 kB / 332.5 MB, free: 11.91 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000308/0.2789, allocations: 137.3 kB / 332.7 MB, free: 11.83 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.2789, allocations: 5.656 kB / 332.7 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2789, allocations: 5 kB / 332.7 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.279, allocations: 2.219 kB / 332.7 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.532e-05/0.2791, allocations: 16.27 kB / 332.7 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2791, allocations: 0.9688 kB / 332.7 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.2792, allocations: 25.23 kB / 332.7 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.2792, allocations: 3.75 kB / 332.7 MB, free: 11.81 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001464/0.2794, allocations: 152.2 kB / 332.9 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-05/0.2795, allocations: 21 kB / 332.9 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.791e-05/0.2795, allocations: 22 kB / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.2795, allocations: 6.359 kB / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.2795, allocations: 0 / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2796, allocations: 5.156 kB / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.2798, allocations: 248.1 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.2798, allocations: 0 / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.354e-05/0.2799, allocations: 8.797 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2799, allocations: 2.375 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.2799, allocations: 1.125 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.2799, allocations: 2.5 kB / 333.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.2799, allocations: 7.984 kB / 333.2 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.2802, allocations: 182.3 kB / 333.4 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-05/0.2803, allocations: 99.69 kB / 333.5 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.2804, allocations: 1.625 kB / 333.5 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.2805, allocations: 14.48 kB / 333.5 MB, free: 11.11 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.2805, allocations: 15.08 kB / 333.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.2806, allocations: 7.625 kB / 333.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002132/0.2808, allocations: 209.9 kB / 333.7 MB, free: 10.96 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2808, allocations: 4 kB / 333.7 MB, free: 10.96 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000299/0.2811, allocations: 39.3 kB / 333.8 MB, free: 10.95 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.0009817/0.2821, allocations: 424.6 kB / 334.2 MB, free: 10.58 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002924/0.2824, allocations: 97.58 kB / 334.3 MB, free: 10.49 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2824, allocations: 0 / 334.3 MB, free: 10.49 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.2825, allocations: 48.17 kB / 334.3 MB, free: 10.45 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.2829, allocations: 48.41 kB / 334.4 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007405/0.2837, allocations: 349.8 kB / 334.7 MB, free: 10.02 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.284, allocations: 0.7358 MB / 335.4 MB, free: 9.262 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.506e-05/0.2841, allocations: 21.55 kB / 335.5 MB, free: 9.242 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.2842, allocations: 23.44 kB / 335.5 MB, free: 9.219 MB / 270.1 MB Notification: Performance of SimCode: time 2.174e-06/0.2842, allocations: 0 / 335.5 MB, free: 9.219 MB / 270.1 MB Notification: Performance of Templates: time 0.007559/0.2918, allocations: 2.76 MB / 338.2 MB, free: 6.453 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)