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.001458/0.001458, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00216/0.00216, allocations: 190.5 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.267/2.267, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001285/0.001285, allocations: 52.41 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3378, allocations: 46.62 MB / 324.8 MB, free: 2.055 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003436/0.3413, allocations: 1.87 MB / 326.7 MB, free: 0.5859 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.3428, allocations: 0.943 MB / 327.6 MB, free: 15.85 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.525e-05/0.3429, allocations: 5.531 kB / 327.7 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006725/0.3436, allocations: 154.2 kB / 327.8 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003011/0.3439, allocations: 109.8 kB / 327.9 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.3443, allocations: 141.7 kB / 328.1 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.3446, allocations: 214.1 kB / 328.3 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.3447, allocations: 16.47 kB / 328.3 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.3449, allocations: 86.03 kB / 328.4 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.3451, allocations: 82.55 kB / 328.4 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.3451, allocations: 11 kB / 328.5 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.3452, allocations: 58.09 kB / 328.5 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.298e-05/0.3453, allocations: 55.67 kB / 328.6 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.977e-05/0.3454, allocations: 77.39 kB / 328.6 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.3458, allocations: 214.6 kB / 328.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3458, allocations: 1.125 kB / 328.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3458, allocations: 0 / 328.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.3458, allocations: 0 / 328.8 MB, free: 15.11 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.3468, allocations: 0.5187 MB / 329.4 MB, free: 14.59 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3469, allocations: 9.188 kB / 329.4 MB, free: 14.59 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.413e-05/0.3469, allocations: 22.31 kB / 329.4 MB, free: 14.58 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.3473, allocations: 264.1 kB / 329.7 MB, free: 14.31 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.3473, allocations: 7.844 kB / 329.7 MB, free: 14.31 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.3474, allocations: 8.656 kB / 329.7 MB, free: 14.3 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002692/0.3476, allocations: 126 kB / 329.8 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3477, allocations: 0 / 329.8 MB, free: 14.19 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.3477, allocations: 5.188 kB / 329.8 MB, free: 14.18 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.3477, allocations: 2.375 kB / 329.8 MB, free: 14.18 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001538/0.3478, allocations: 49.91 kB / 329.9 MB, free: 14.16 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009568/0.3488, allocations: 0.6057 MB / 330.5 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.3491, allocations: 132.2 kB / 330.6 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3492, allocations: 53.09 kB / 330.6 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.3492, allocations: 10.17 kB / 330.6 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002681/0.3495, allocations: 115.5 kB / 330.8 MB, free: 13.27 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/0.3495, allocations: 1.281 kB / 330.8 MB, free: 13.27 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004872/0.35, allocations: 172.9 kB / 330.9 MB, free: 13.17 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.436e-05/0.3501, allocations: 134.9 kB / 331.1 MB, free: 13.01 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/0.3505, allocations: 287.2 kB / 331.3 MB, free: 12.82 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.3506, allocations: 35.09 kB / 331.4 MB, free: 12.79 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.3507, allocations: 125 kB / 331.5 MB, free: 12.67 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.3508, allocations: 20.72 kB / 331.5 MB, free: 12.65 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.007e-05/0.3509, allocations: 33.77 kB / 331.6 MB, free: 12.62 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.351, allocations: 339.4 kB / 331.9 MB, free: 12.29 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-05/0.3511, allocations: 33.83 kB / 331.9 MB, free: 12.27 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.3513, allocations: 82.34 kB / 332 MB, free: 12.2 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.3514, allocations: 100.2 kB / 332.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3515, allocations: 1.062 kB / 332.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002746/0.3517, allocations: 142.3 kB / 332.2 MB, free: 12.03 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3518, allocations: 9.547 kB / 332.2 MB, free: 12.03 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3518, allocations: 1.094 kB / 332.2 MB, free: 12.03 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.3518, allocations: 2.156 kB / 332.2 MB, free: 12.03 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.057e-05/0.3519, allocations: 15.91 kB / 332.3 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.3519, allocations: 5.188 kB / 332.3 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.352, allocations: 19.64 kB / 332.3 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.3521, allocations: 4.312 kB / 332.3 MB, free: 12.01 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.0001458/0.3522, allocations: 148.6 kB / 332.4 MB, free: 11.87 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.3523, allocations: 21.97 kB / 332.5 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.679e-05/0.3523, allocations: 25.52 kB / 332.5 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3523, allocations: 6.219 kB / 332.5 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3523, allocations: 1.062 kB / 332.5 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.3523, allocations: 7.938 kB / 332.5 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.3526, allocations: 247.7 kB / 332.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3526, allocations: 1.125 kB / 332.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.587e-05/0.3526, allocations: 5.719 kB / 332.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3526, allocations: 1.594 kB / 332.7 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3527, allocations: 5.453 kB / 332.8 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3527, allocations: 1.031 kB / 332.8 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3527, allocations: 1.25 kB / 332.8 MB, free: 11.57 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.353, allocations: 181.6 kB / 332.9 MB, free: 11.43 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.958e-05/0.3531, allocations: 91.08 kB / 333 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.407e-05/0.3531, allocations: 8.031 kB / 333 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.11e-05/0.3532, allocations: 13.42 kB / 333 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.492e-05/0.3533, allocations: 25.72 kB / 333.1 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.3533, allocations: 4.438 kB / 333.1 MB, free: 11.3 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.3535, allocations: 221.8 kB / 333.3 MB, free: 11.15 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3535, allocations: 0 / 333.3 MB, free: 11.15 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.3538, allocations: 35.47 kB / 333.3 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 (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.0009432/0.3547, allocations: 409.1 kB / 333.7 MB, free: 10.79 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002846/0.355, allocations: 94.12 kB / 333.8 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.355, allocations: 192 / 333.8 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.3552, allocations: 66.56 kB / 333.9 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.0003677/0.3555, allocations: 56.31 kB / 333.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006036/0.3562, allocations: 385.9 kB / 334.3 MB, free: 10.25 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.3565, allocations: 0.7319 MB / 335 MB, free: 9.488 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.78e-05/0.3566, allocations: 29.47 kB / 335.1 MB, free: 9.461 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.057e-05/0.3566, allocations: 27.38 kB / 335.1 MB, free: 9.434 MB / 270.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3566, allocations: 0 / 335.1 MB, free: 9.434 MB / 270.1 MB Notification: Performance of Templates: time 0.005748/0.3624, allocations: 2.635 MB / 337.7 MB, free: 6.797 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)