Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.0009943/0.0009941, allocations: 99.86 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.001198/0.001198, 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.49/1.49, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0005354/0.0005355, allocations: 10.81 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2706, allocations: 47.58 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002467/0.2731, allocations: 1.481 MB / 327.9 MB, free: 252 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.2747, allocations: 0.8709 MB / 328.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.524e-05/0.2748, allocations: 1.281 kB / 328.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006721/0.2755, allocations: 140.4 kB / 328.9 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002885/0.2758, allocations: 112.1 kB / 329 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.2762, allocations: 125.4 kB / 329.2 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001943/0.2764, allocations: 123.2 kB / 329.3 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.2766, allocations: 27.41 kB / 329.3 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.2767, allocations: 73.12 kB / 329.4 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.2768, allocations: 75.95 kB / 329.4 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.2769, allocations: 7.688 kB / 329.5 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.277, allocations: 34.7 kB / 329.5 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.402e-05/0.2771, allocations: 43.33 kB / 329.5 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.162e-05/0.2771, allocations: 52.14 kB / 329.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.2774, allocations: 159.6 kB / 329.7 MB, free: 14.97 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2774, allocations: 0 / 329.7 MB, free: 14.97 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2774, allocations: 0 / 329.7 MB, free: 14.97 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2774, allocations: 1.031 kB / 329.7 MB, free: 14.97 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.0009493/0.2784, allocations: 0.5038 MB / 330.2 MB, free: 14.47 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.2784, allocations: 8.938 kB / 330.3 MB, free: 14.47 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/0.2785, allocations: 20.31 kB / 330.3 MB, free: 14.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003412/0.2788, allocations: 252.8 kB / 330.5 MB, free: 14.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.2788, allocations: 6.25 kB / 330.5 MB, free: 14.2 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.2789, allocations: 4.719 kB / 330.5 MB, free: 14.2 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.2791, allocations: 121.9 kB / 330.7 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2792, allocations: 1.031 kB / 330.7 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.2792, allocations: 4.906 kB / 330.7 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2792, allocations: 1.375 kB / 330.7 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.2794, allocations: 51.38 kB / 330.7 MB, free: 14.05 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000771/0.2801, allocations: 0.6037 MB / 331.3 MB, free: 13.44 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.2804, allocations: 129.6 kB / 331.4 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.2805, allocations: 5.406 kB / 331.4 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003058/0.2808, allocations: 121.2 kB / 331.6 MB, free: 13.21 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.2808, allocations: 0 / 331.6 MB, free: 13.21 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004407/0.2813, allocations: 170.6 kB / 331.7 MB, free: 13.12 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.564e-05/0.2813, allocations: 139.3 kB / 331.9 MB, free: 12.96 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.2816, allocations: 289.7 kB / 332.1 MB, free: 12.77 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.2817, allocations: 27.08 kB / 332.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.017e-05/0.2818, allocations: 129.2 kB / 332.3 MB, free: 12.61 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.2818, allocations: 27.86 kB / 332.3 MB, free: 12.59 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.2818, allocations: 1.125 kB / 332.3 MB, free: 12.59 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.2819, allocations: 336.9 kB / 332.7 MB, free: 12.26 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.482e-05/0.282, allocations: 32.98 kB / 332.7 MB, free: 12.24 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.2821, allocations: 86.94 kB / 332.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.154e-05/0.2822, allocations: 34.27 kB / 332.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2823, allocations: 0 / 332.8 MB, free: 12.14 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002626/0.2825, allocations: 151.9 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2825, allocations: 9.719 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2826, allocations: 1.188 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.2826, allocations: 1.938 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.217e-05/0.2827, allocations: 12.12 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.2827, allocations: 2.094 kB / 333 MB, free: 12.05 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.2828, allocations: 14.73 kB / 333 MB, free: 12.04 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.2828, allocations: 8.469 kB / 333 MB, free: 12.04 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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.283, allocations: 155.4 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.761e-05/0.283, allocations: 25.86 kB / 333.2 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.867e-05/0.2831, allocations: 26.08 kB / 333.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.2831, allocations: 1.219 kB / 333.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2831, allocations: 1.062 kB / 333.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2831, allocations: 1 kB / 333.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002292/0.2833, allocations: 247.5 kB / 333.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2834, allocations: 1.062 kB / 333.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.74e-05/0.2834, allocations: 4.375 kB / 333.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2834, allocations: 1.438 kB / 333.5 MB, free: 11.61 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2834, allocations: 14.17 kB / 333.5 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.2834, allocations: 2.312 kB / 333.5 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2834, allocations: 3.938 kB / 333.5 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.2838, allocations: 204.7 kB / 333.7 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.012e-05/0.2838, allocations: 102.6 kB / 333.8 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.2839, allocations: 2.906 kB / 333.8 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.284, allocations: 16.67 kB / 333.8 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.019e-05/0.2841, allocations: 15.28 kB / 333.8 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.2841, allocations: 7.812 kB / 333.8 MB, free: 11.29 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.2843, allocations: 211.8 kB / 334 MB, free: 11.15 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2843, allocations: 4 kB / 334 MB, free: 11.14 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.2846, allocations: 36 kB / 334.1 MB, free: 11.14 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 (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.0009533/0.2856, allocations: 420.5 kB / 334.5 MB, free: 10.77 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.2859, allocations: 93.61 kB / 334.6 MB, free: 10.73 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2859, allocations: 0 / 334.6 MB, free: 10.73 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.286, allocations: 59.88 kB / 334.6 MB, free: 10.71 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.2864, allocations: 40.89 kB / 334.7 MB, free: 10.69 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006725/0.287, allocations: 364.4 kB / 335 MB, free: 10.41 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.2874, allocations: 0.7459 MB / 335.8 MB, free: 9.676 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.833e-05/0.2875, allocations: 30.06 kB / 335.8 MB, free: 9.652 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.992e-05/0.2875, allocations: 23.44 kB / 335.8 MB, free: 9.629 MB / 270.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2875, allocations: 0 / 335.8 MB, free: 9.629 MB / 270.1 MB Notification: Performance of Templates: time 0.005619/0.2932, allocations: 2.467 MB / 338.3 MB, free: 7.16 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) Environment - environmentSimulation: