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.001392/0.001392, allocations: 108 kB / 15.61 MB, free: 152 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.001946/0.001946, allocations: 194.3 kB / 16.53 MB, free: 6.699 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.629/1.629, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001199/0.001199, allocations: 52.41 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2689, allocations: 46.63 MB / 325.3 MB, free: 1.988 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003036/0.272, allocations: 1.823 MB / 327.1 MB, free: 0.5469 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.2734, allocations: 0.9484 MB / 328.1 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.868e-05/0.2735, allocations: 5.094 kB / 328.1 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006162/0.2742, allocations: 170.3 kB / 328.2 MB, free: 15.7 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.0003078/0.2745, allocations: 116.4 kB / 328.4 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003918/0.2749, allocations: 152.8 kB / 328.5 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002567/0.2751, allocations: 212.5 kB / 328.7 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.2753, allocations: 21.92 kB / 328.7 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.2754, allocations: 88.89 kB / 328.8 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.2755, allocations: 82.11 kB / 328.9 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.2756, allocations: 10.03 kB / 328.9 MB, free: 15.28 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.2757, allocations: 49.83 kB / 329 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.425e-05/0.2758, allocations: 47.69 kB / 329 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.615e-05/0.2759, allocations: 84.48 kB / 329.1 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.2762, allocations: 215.2 kB / 329.3 MB, free: 15.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2762, allocations: 1.062 kB / 329.3 MB, free: 15.02 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2762, allocations: 0 / 329.3 MB, free: 15.02 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2762, allocations: 0 / 329.3 MB, free: 15.02 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.0009424/0.2772, allocations: 0.5227 MB / 329.8 MB, free: 14.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.2772, allocations: 13.11 kB / 329.8 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.206e-05/0.2773, allocations: 22.06 kB / 329.9 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.2777, allocations: 252.2 kB / 330.1 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.2778, allocations: 12.25 kB / 330.1 MB, free: 14.22 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.2778, allocations: 7.75 kB / 330.1 MB, free: 14.22 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002577/0.278, allocations: 118.2 kB / 330.2 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2781, allocations: 1.25 kB / 330.2 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.2781, allocations: 0.9688 kB / 330.2 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.2781, allocations: 1.125 kB / 330.2 MB, free: 14.11 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.2783, allocations: 53.59 kB / 330.3 MB, free: 14.08 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007415/0.279, allocations: 0.6058 MB / 330.9 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.2793, allocations: 126.2 kB / 331 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.2794, allocations: 51.78 kB / 331.1 MB, free: 13.31 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.2795, allocations: 2.719 kB / 331.1 MB, free: 13.31 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.2797, allocations: 123.5 kB / 331.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.2797, allocations: 0 / 331.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004747/0.2802, allocations: 170.6 kB / 331.4 MB, free: 13.11 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.2803, allocations: 134.1 kB / 331.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.2806, allocations: 286.8 kB / 331.8 MB, free: 12.76 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.2807, allocations: 31.48 kB / 331.8 MB, free: 12.72 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.2808, allocations: 129 kB / 331.9 MB, free: 12.6 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.2808, allocations: 24.62 kB / 332 MB, free: 12.58 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.2809, allocations: 33.58 kB / 332 MB, free: 12.55 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.281, allocations: 344.7 kB / 332.3 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.617e-05/0.2811, allocations: 32.2 kB / 332.4 MB, free: 12.2 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.2813, allocations: 87.39 kB / 332.4 MB, free: 12.12 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.2815, allocations: 99.84 kB / 332.5 MB, free: 12.04 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2815, allocations: 1.094 kB / 332.5 MB, free: 12.04 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002858/0.2818, allocations: 142.1 kB / 332.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.2818, allocations: 5.562 kB / 332.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2818, allocations: 1.125 kB / 332.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.2818, allocations: 6.297 kB / 332.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.148e-05/0.2819, allocations: 11.16 kB / 332.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.2819, allocations: 1.969 kB / 332.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.2821, allocations: 23.98 kB / 332.7 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.2821, allocations: 4.938 kB / 332.7 MB, free: 11.93 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.0001297/0.2822, allocations: 147.7 kB / 332.9 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.901e-05/0.2823, allocations: 24.86 kB / 332.9 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.087e-05/0.2823, allocations: 25.83 kB / 332.9 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2823, allocations: 2.375 kB / 332.9 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2823, allocations: 5.094 kB / 332.9 MB, free: 11.76 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2824, allocations: 5.094 kB / 332.9 MB, free: 11.76 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.2826, allocations: 247.2 kB / 333.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.2827, allocations: 1.125 kB / 333.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.59e-05/0.2827, allocations: 4.656 kB / 333.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2827, allocations: 1.25 kB / 333.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.2827, allocations: 2.312 kB / 333.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2827, allocations: 5.172 kB / 333.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.2827, allocations: 5.156 kB / 333.2 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000305/0.283, allocations: 182.3 kB / 333.4 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-05/0.2831, allocations: 90.48 kB / 333.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.2832, allocations: 6.281 kB / 333.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.774e-05/0.2833, allocations: 10.55 kB / 333.5 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.2833, allocations: 18.89 kB / 333.5 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.2834, allocations: 7.797 kB / 333.5 MB, free: 11.23 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002278/0.2836, allocations: 213.9 kB / 333.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2836, allocations: 7.938 kB / 333.7 MB, free: 11.08 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.2839, allocations: 34.91 kB / 333.8 MB, free: 11.07 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.0009779/0.2849, allocations: 429.6 kB / 334.2 MB, free: 10.7 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002863/0.2852, allocations: 90.66 kB / 334.3 MB, free: 10.62 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2852, allocations: 0 / 334.3 MB, free: 10.62 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.2853, allocations: 60.16 kB / 334.3 MB, free: 10.56 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.2857, allocations: 40.41 kB / 334.4 MB, free: 10.52 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006395/0.2864, allocations: 353.8 kB / 334.7 MB, free: 10.14 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.2867, allocations: 0.7358 MB / 335.4 MB, free: 9.383 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.7e-05/0.2868, allocations: 21.55 kB / 335.5 MB, free: 9.363 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.555e-05/0.2869, allocations: 27.36 kB / 335.5 MB, free: 9.336 MB / 270.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2869, allocations: 0 / 335.5 MB, free: 9.336 MB / 270.1 MB Notification: Performance of Templates: time 0.006788/0.2937, allocations: 2.749 MB / 338.2 MB, free: 6.582 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.ShowLogicalSources.makefile (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)