Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001792/0.001792, allocations: 101.6 kB / 17.05 MB, free: 6.129 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.001833/0.001833, allocations: 195 kB / 18 MB, free: 5.203 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.75/1.75, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.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.001327/0.001327, allocations: 55.92 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1063, allocations: 46.62 MB / 374.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004209/0.1106, allocations: 1.824 MB / 376.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1124, allocations: 0.9556 MB / 377.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.1126, allocations: 4 kB / 377.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006926/0.1133, allocations: 159.5 kB / 377.4 MB, free: 1.629 MB / 318.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.0004054/0.1137, allocations: 127.5 kB / 377.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.1144, allocations: 151.6 kB / 377.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004186/0.1148, allocations: 211.4 kB / 377.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.115, allocations: 13.56 kB / 377.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002528/0.1153, allocations: 91.61 kB / 378 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.1155, allocations: 79.67 kB / 378.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.667e-05/0.1155, allocations: 12 kB / 378.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.1157, allocations: 63.91 kB / 378.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.809e-05/0.1158, allocations: 43.83 kB / 378.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.116, allocations: 79.53 kB / 378.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.1165, allocations: 215.2 kB / 378.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.1166, allocations: 0 / 378.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1166, allocations: 0 / 378.5 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.1166, allocations: 0 / 378.5 MB, free: 0.5625 MB / 318.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.223/0.3396, allocations: 0.5251 MB / 379 MB, free: 13.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.282e-05/0.3396, allocations: 12 kB / 379 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.3398, allocations: 21.89 kB / 379 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004464/0.3402, allocations: 256.2 kB / 379.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.3403, allocations: 6.75 kB / 379.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.3403, allocations: 7.359 kB / 379.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.3406, allocations: 117.6 kB / 379.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3406, allocations: 2.062 kB / 379.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.3406, allocations: 6.953 kB / 379.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3407, allocations: 1.375 kB / 379.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.3408, allocations: 49.61 kB / 379.5 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006727/0.3415, allocations: 0.6026 MB / 380.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.3418, allocations: 135.3 kB / 380.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.688e-05/0.3419, allocations: 47.52 kB / 380.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.3419, allocations: 7.281 kB / 380.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.3422, allocations: 126.6 kB / 380.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.3422, allocations: 0 / 380.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004961/0.3427, allocations: 176.8 kB / 380.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.3428, allocations: 131.5 kB / 380.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.3431, allocations: 285.6 kB / 381 MB, free: 12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.3431, allocations: 30.64 kB / 381 MB, free: 11.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.4e-05/0.3432, allocations: 124.9 kB / 381.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.3432, allocations: 31.23 kB / 381.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.3433, allocations: 37.66 kB / 381.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.961e-05/0.3434, allocations: 336.3 kB / 381.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.652e-05/0.3435, allocations: 34.45 kB / 381.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.3436, allocations: 78.92 kB / 381.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.3437, allocations: 99.25 kB / 381.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3438, allocations: 0 / 381.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002493/0.344, allocations: 143.9 kB / 381.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.344, allocations: 6.312 kB / 381.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.3441, allocations: 1.219 kB / 381.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3441, allocations: 1.719 kB / 381.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.856e-05/0.3442, allocations: 17.73 kB / 381.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3442, allocations: 2.172 kB / 381.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.3443, allocations: 16.83 kB / 381.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.3443, allocations: 7.5 kB / 381.9 MB, free: 11.38 MB / 318.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.0001052/0.3444, allocations: 163.2 kB / 382.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.419e-05/0.3445, allocations: 23.56 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.714e-05/0.3445, allocations: 24.59 kB / 382.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3445, allocations: 2.219 kB / 382.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.3445, allocations: 2.406 kB / 382.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3446, allocations: 1.969 kB / 382.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.3448, allocations: 240.6 kB / 382.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3448, allocations: 1.922 kB / 382.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.454e-05/0.3448, allocations: 5.875 kB / 382.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.3449, allocations: 1.094 kB / 382.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.3449, allocations: 10.06 kB / 382.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.3449, allocations: 9.969 kB / 382.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3449, allocations: 0.5312 kB / 382.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003356/0.3452, allocations: 178.5 kB / 382.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.174e-05/0.3453, allocations: 96.86 kB / 382.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.3453, allocations: 7.672 kB / 382.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.577e-05/0.3454, allocations: 12.73 kB / 382.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.461e-05/0.3455, allocations: 13.12 kB / 382.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.3456, allocations: 6.828 kB / 382.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002551/0.3458, allocations: 215.1 kB / 382.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.3458, allocations: 0 / 382.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.3461, allocations: 43.05 kB / 382.9 MB, free: 10.7 MB / 318.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.001006/0.3472, allocations: 418.4 kB / 383.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002689/0.3474, allocations: 92.02 kB / 383.4 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3474, allocations: 0 / 383.4 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.3476, allocations: 51.83 kB / 383.5 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.3479, allocations: 57.84 kB / 383.5 MB, free: 10.33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005302/0.3485, allocations: 349.5 kB / 383.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.3486, allocations: 0.7294 MB / 384.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.32e-05/0.3487, allocations: 38.7 kB / 384.7 MB, free: 9.387 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.3488, allocations: 23.86 kB / 384.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3488, allocations: 0 / 384.7 MB, free: 9.375 MB / 318.1 MB Notification: Performance of Templates: time 0.006536/0.3553, allocations: 2.814 MB / 387.5 MB, free: 9.082 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)