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.001014/0.001013, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008714/0.008714, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.764/1.764, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.000725/0.0007251, allocations: 16 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3437, allocations: 47.59 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002123/0.3459, allocations: 1.532 MB / 328.5 MB, free: 200 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3475, allocations: 0.9159 MB / 329.5 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.069e-05/0.3476, allocations: 1.188 kB / 329.5 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006405/0.3483, allocations: 166.2 kB / 329.6 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.3485, allocations: 103.9 kB / 329.7 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.349, allocations: 150.5 kB / 329.9 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002647/0.3492, allocations: 198.4 kB / 330.1 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3494, allocations: 25.27 kB / 330.1 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.3495, allocations: 75.19 kB / 330.2 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.3497, allocations: 76.67 kB / 330.2 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.3497, allocations: 4.438 kB / 330.2 MB, free: 15.01 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.3498, allocations: 47.05 kB / 330.3 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.806e-05/0.3499, allocations: 43.42 kB / 330.3 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.35, allocations: 99.17 kB / 330.4 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.3504, allocations: 200.7 kB / 330.6 MB, free: 14.75 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3504, allocations: 5.469 kB / 330.6 MB, free: 14.74 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3504, allocations: 0 / 330.6 MB, free: 14.74 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.3504, allocations: 0 / 330.6 MB, free: 14.74 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.0008607/0.3513, allocations: 0.4907 MB / 331.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3513, allocations: 8.969 kB / 331.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.856e-05/0.3514, allocations: 25.92 kB / 331.2 MB, free: 14.24 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.3517, allocations: 264.5 kB / 331.4 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.3518, allocations: 3.188 kB / 331.4 MB, free: 13.97 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.3518, allocations: 16.72 kB / 331.4 MB, free: 13.96 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.3521, allocations: 123.4 kB / 331.6 MB, free: 13.84 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3521, allocations: 0 / 331.6 MB, free: 13.84 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.3522, allocations: 5.781 kB / 331.6 MB, free: 13.84 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.3522, allocations: 1.156 kB / 331.6 MB, free: 13.84 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.3523, allocations: 56.25 kB / 331.6 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008247/0.3532, allocations: 0.6065 MB / 332.2 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.3535, allocations: 118 kB / 332.3 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.3536, allocations: 58.03 kB / 332.4 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.07e-05/0.3537, allocations: 2.25 kB / 332.4 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.354, allocations: 120.6 kB / 332.5 MB, free: 12.94 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 3.005e-06/0.354, allocations: 0 / 332.5 MB, free: 12.94 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005457/0.3545, allocations: 181.2 kB / 332.7 MB, free: 12.84 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.3546, allocations: 130.3 kB / 332.8 MB, free: 12.68 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.355, allocations: 290.6 kB / 333.1 MB, free: 12.49 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.355, allocations: 27.95 kB / 333.1 MB, free: 12.46 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3551, allocations: 129.1 kB / 333.3 MB, free: 12.34 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.211e-05/0.3552, allocations: 24.28 kB / 333.3 MB, free: 12.32 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.3552, allocations: 31.48 kB / 333.3 MB, free: 12.29 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.3554, allocations: 331.4 kB / 333.6 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.381e-05/0.3555, allocations: 33.91 kB / 333.7 MB, free: 11.94 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.3556, allocations: 88.59 kB / 333.8 MB, free: 11.86 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.3559, allocations: 101 kB / 333.9 MB, free: 11.78 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3559, allocations: 1.031 kB / 333.9 MB, free: 11.78 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002995/0.3562, allocations: 135.9 kB / 334 MB, free: 11.7 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3562, allocations: 10.25 kB / 334 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3562, allocations: 1.156 kB / 334 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3562, allocations: 2.062 kB / 334 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.3564, allocations: 23.23 kB / 334 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3564, allocations: 2.375 kB / 334 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.3565, allocations: 23.27 kB / 334 MB, free: 11.68 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.3565, allocations: 5.25 kB / 334.1 MB, free: 11.68 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.0001677/0.3567, allocations: 154.8 kB / 334.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.477e-05/0.3568, allocations: 21.78 kB / 334.2 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.843e-05/0.3568, allocations: 25.77 kB / 334.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.319e-06/0.3568, allocations: 2.312 kB / 334.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.3569, allocations: 1.062 kB / 334.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3569, allocations: 4.875 kB / 334.3 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.3572, allocations: 239.2 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3572, allocations: 1.062 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.638e-05/0.3572, allocations: 9 kB / 334.5 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.3572, allocations: 5.656 kB / 334.5 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.3572, allocations: 5.094 kB / 334.5 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3572, allocations: 1.906 kB / 334.5 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3572, allocations: 0.9062 kB / 334.5 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.3576, allocations: 183.8 kB / 334.7 MB, free: 11.1 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.366e-05/0.3577, allocations: 100.2 kB / 334.8 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.3577, allocations: 2.094 kB / 334.8 MB, free: 10.99 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.3578, allocations: 17.52 kB / 334.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.3579, allocations: 26.3 kB / 334.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.3579, allocations: 5.344 kB / 334.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002332/0.3582, allocations: 208.1 kB / 335 MB, free: 10.83 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3582, allocations: 1.219 kB / 335 MB, free: 10.83 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002719/0.3584, allocations: 39.16 kB / 335.1 MB, free: 10.82 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.001009/0.3595, allocations: 431.7 kB / 335.5 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002682/0.3597, allocations: 91.91 kB / 335.6 MB, free: 10.31 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3598, allocations: 0 / 335.6 MB, free: 10.31 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.3599, allocations: 56.16 kB / 335.7 MB, free: 10.26 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.3603, allocations: 52.39 kB / 335.7 MB, free: 10.21 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007103/0.361, allocations: 384.2 kB / 336.1 MB, free: 9.801 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.3614, allocations: 0.7361 MB / 336.8 MB, free: 9.039 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.132e-05/0.3615, allocations: 17.55 kB / 336.8 MB, free: 9.023 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.3615, allocations: 23.42 kB / 336.9 MB, free: 9 MB / 270.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3615, allocations: 0 / 336.9 MB, free: 9 MB / 270.1 MB Notification: Performance of Templates: time 0.006139/0.3677, allocations: 2.538 MB / 339.4 MB, free: 6.461 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)