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.001051/0.001051, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001195/0.001195, allocations: 172.7 kB / 15.95 MB, free: 208 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.754/1.754, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004525/0.0004527, allocations: 16 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3398, allocations: 47.59 MB / 326.5 MB, free: 1.371 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002219/0.342, allocations: 1.495 MB / 328 MB, free: 196 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.3436, allocations: 0.8851 MB / 328.8 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.733e-05/0.3438, allocations: 5.281 kB / 328.9 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006812/0.3444, allocations: 152.8 kB / 329 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.3447, allocations: 106.7 kB / 329.1 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004142/0.3452, allocations: 126 kB / 329.2 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.3455, allocations: 186.8 kB / 329.4 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.3457, allocations: 12.44 kB / 329.4 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.3459, allocations: 80.95 kB / 329.5 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.3461, allocations: 74.12 kB / 329.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.761e-05/0.3461, allocations: 8.094 kB / 329.6 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.3463, allocations: 46.75 kB / 329.6 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.703e-05/0.3464, allocations: 39.36 kB / 329.7 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.777e-05/0.3465, allocations: 55.42 kB / 329.7 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.3467, allocations: 156 kB / 329.9 MB, free: 14.87 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3468, allocations: 1.219 kB / 329.9 MB, free: 14.87 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3468, allocations: 0 / 329.9 MB, free: 14.87 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.3468, allocations: 0 / 329.9 MB, free: 14.87 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.001026/0.3478, allocations: 0.5046 MB / 330.4 MB, free: 14.37 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3479, allocations: 8.688 kB / 330.4 MB, free: 14.37 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.696e-05/0.348, allocations: 20.78 kB / 330.4 MB, free: 14.36 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.3483, allocations: 251 kB / 330.7 MB, free: 14.1 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.3484, allocations: 7.219 kB / 330.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.3484, allocations: 8.312 kB / 330.7 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000281/0.3487, allocations: 122.5 kB / 330.8 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3487, allocations: 0.9062 kB / 330.8 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.3487, allocations: 1.406 kB / 330.8 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3488, allocations: 0.9062 kB / 330.8 MB, free: 13.98 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.3489, allocations: 63.22 kB / 330.9 MB, free: 13.94 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008501/0.3498, allocations: 0.6042 MB / 331.5 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.3501, allocations: 128.6 kB / 331.6 MB, free: 13.21 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.3502, allocations: 46.06 kB / 331.6 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.3503, allocations: 1.156 kB / 331.6 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.3506, allocations: 124.9 kB / 331.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 2.614e-06/0.3506, allocations: 0 / 331.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005127/0.3511, allocations: 167.7 kB / 331.9 MB, free: 12.98 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.967e-05/0.3512, allocations: 146.9 kB / 332.1 MB, free: 12.8 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003511/0.3516, allocations: 293 kB / 332.3 MB, free: 12.61 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.309e-05/0.3516, allocations: 27.95 kB / 332.4 MB, free: 12.58 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.684e-05/0.3517, allocations: 125.5 kB / 332.5 MB, free: 12.46 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.3518, allocations: 31.89 kB / 332.5 MB, free: 12.43 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-06/0.3518, allocations: 1 kB / 332.5 MB, free: 12.43 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000249/0.352, allocations: 333 kB / 332.9 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.701e-05/0.3521, allocations: 32.36 kB / 332.9 MB, free: 12.09 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.3523, allocations: 84.12 kB / 333 MB, free: 12.01 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.3524, allocations: 35.33 kB / 333 MB, free: 12 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3524, allocations: 0 / 333 MB, free: 12 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003147/0.3527, allocations: 154.8 kB / 333.1 MB, free: 11.9 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3528, allocations: 5.531 kB / 333.2 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3528, allocations: 1.5 kB / 333.2 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3528, allocations: 2.25 kB / 333.2 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.752e-05/0.3529, allocations: 14.72 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.3529, allocations: 2.312 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.353, allocations: 23.2 kB / 333.2 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.3531, allocations: 9.234 kB / 333.2 MB, free: 11.88 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.0001507/0.3532, allocations: 142.8 kB / 333.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.302e-05/0.3533, allocations: 21.62 kB / 333.4 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.241e-05/0.3533, allocations: 26.14 kB / 333.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3534, allocations: 1.031 kB / 333.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3534, allocations: 1.969 kB / 333.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3534, allocations: 1.406 kB / 333.4 MB, free: 11.72 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.3536, allocations: 250.7 kB / 333.6 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3537, allocations: 4.906 kB / 333.6 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.085e-05/0.3537, allocations: 8.688 kB / 333.7 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3537, allocations: 5.656 kB / 333.7 MB, free: 11.45 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.3537, allocations: 5.516 kB / 333.7 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3537, allocations: 1.344 kB / 333.7 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3537, allocations: 0.9375 kB / 333.7 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003352/0.3541, allocations: 187.7 kB / 333.9 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.3542, allocations: 99.81 kB / 333.9 MB, free: 11.19 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.3542, allocations: 6.094 kB / 334 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.3543, allocations: 13.83 kB / 334 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/0.3544, allocations: 14.33 kB / 334 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.3544, allocations: 4.219 kB / 334 MB, free: 11.17 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002924/0.3547, allocations: 215.7 kB / 334.2 MB, free: 11.03 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.3547, allocations: 1.188 kB / 334.2 MB, free: 11.03 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.355, allocations: 35.11 kB / 334.2 MB, free: 11.02 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.001069/0.3561, allocations: 420.8 kB / 334.6 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003251/0.3564, allocations: 97.02 kB / 334.7 MB, free: 10.62 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3565, allocations: 4.062 kB / 334.7 MB, free: 10.61 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001485/0.3566, allocations: 51.27 kB / 334.8 MB, free: 10.59 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.357, allocations: 49.84 kB / 334.8 MB, free: 10.57 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000694/0.3577, allocations: 368.3 kB / 335.2 MB, free: 10.28 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.3581, allocations: 0.7361 MB / 335.9 MB, free: 9.52 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.994e-05/0.3581, allocations: 17.55 kB / 336 MB, free: 9.504 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.3582, allocations: 23.44 kB / 336 MB, free: 9.48 MB / 270.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3582, allocations: 4 kB / 336 MB, free: 9.477 MB / 270.1 MB Notification: Performance of Templates: time 0.006226/0.3644, allocations: 2.471 MB / 338.5 MB, free: 7.004 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)