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.001232/0.001232, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001356/0.001356, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.278/1.278, allocations: 205.1 MB / 222 MB, free: 4.754 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.001128/0.001128, allocations: 55.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2035, allocations: 46.61 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002574/0.2061, allocations: 1.878 MB / 326.5 MB, free: 468 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.2074, allocations: 0.9349 MB / 327.5 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7e-05/0.2074, allocations: 2.594 kB / 327.5 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005125/0.208, allocations: 165.9 kB / 327.6 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002177/0.2082, allocations: 107.7 kB / 327.7 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.2085, allocations: 142.3 kB / 327.9 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002087/0.2088, allocations: 199.3 kB / 328.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.404e-05/0.2089, allocations: 28.45 kB / 328.1 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.209, allocations: 79.98 kB / 328.2 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.2091, allocations: 84.61 kB / 328.3 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.2091, allocations: 9.969 kB / 328.3 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.2092, allocations: 47.02 kB / 328.3 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.213e-05/0.2093, allocations: 39.17 kB / 328.4 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.422e-05/0.2094, allocations: 74.16 kB / 328.4 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.2096, allocations: 204.3 kB / 328.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.2096, allocations: 0 / 328.6 MB, free: 15.01 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2096, allocations: 4.781 kB / 328.6 MB, free: 15 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.2097, allocations: 0 / 328.6 MB, free: 15 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.0008483/0.2105, allocations: 0.5221 MB / 329.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.2105, allocations: 9.375 kB / 329.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.646e-05/0.2106, allocations: 21.38 kB / 329.2 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.2109, allocations: 253.8 kB / 329.4 MB, free: 14.22 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.2109, allocations: 6.531 kB / 329.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.2109, allocations: 8.562 kB / 329.5 MB, free: 14.21 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.2112, allocations: 118.8 kB / 329.6 MB, free: 14.1 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.2112, allocations: 3.938 kB / 329.6 MB, free: 14.1 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.2112, allocations: 5.156 kB / 329.6 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.2112, allocations: 2.5 kB / 329.6 MB, free: 14.09 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.2114, allocations: 49.47 kB / 329.6 MB, free: 14.07 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.2119, allocations: 0.6092 MB / 330.2 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.2122, allocations: 124.8 kB / 330.4 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.887e-05/0.2123, allocations: 49.38 kB / 330.4 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.2123, allocations: 6.453 kB / 330.4 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.2126, allocations: 119 kB / 330.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.2126, allocations: 1.125 kB / 330.5 MB, free: 13.19 MB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004211/0.213, allocations: 169.9 kB / 330.7 MB, free: 13.09 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.2131, allocations: 130.9 kB / 330.8 MB, free: 12.94 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.2134, allocations: 286.1 kB / 331.1 MB, free: 12.75 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.2134, allocations: 39.94 kB / 331.1 MB, free: 12.71 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.699e-05/0.2135, allocations: 125 kB / 331.3 MB, free: 12.59 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.2135, allocations: 25.75 kB / 331.3 MB, free: 12.57 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.276e-05/0.2136, allocations: 32.64 kB / 331.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.2137, allocations: 336.6 kB / 331.6 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.844e-05/0.2138, allocations: 31.95 kB / 331.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.214, allocations: 91.3 kB / 331.8 MB, free: 12.11 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.2141, allocations: 96.78 kB / 331.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2141, allocations: 0 / 331.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002548/0.2144, allocations: 145.8 kB / 332 MB, free: 11.95 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2144, allocations: 9.984 kB / 332 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2144, allocations: 5.578 kB / 332 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.2145, allocations: 1.562 kB / 332 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.128e-05/0.2145, allocations: 15.31 kB / 332 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.2146, allocations: 1.469 kB / 332 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.2147, allocations: 23.64 kB / 332.1 MB, free: 11.92 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.2147, allocations: 8.578 kB / 332.1 MB, free: 11.91 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.0001217/0.2148, allocations: 152.1 kB / 332.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.563e-05/0.2149, allocations: 21.78 kB / 332.2 MB, free: 11.76 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.151e-05/0.2149, allocations: 25.55 kB / 332.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2149, allocations: 1.156 kB / 332.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2149, allocations: 1.219 kB / 332.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2149, allocations: 5.156 kB / 332.3 MB, free: 11.74 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.2152, allocations: 239.5 kB / 332.5 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2152, allocations: 5.344 kB / 332.5 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.671e-05/0.2152, allocations: 13.22 kB / 332.5 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2152, allocations: 1.25 kB / 332.5 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.2152, allocations: 5.172 kB / 332.5 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2152, allocations: 1.594 kB / 332.5 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.2152, allocations: 1.344 kB / 332.5 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/0.2155, allocations: 178.7 kB / 332.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.2156, allocations: 98.42 kB / 332.8 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.2156, allocations: 6.062 kB / 332.8 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.341e-05/0.2157, allocations: 10.42 kB / 332.8 MB, free: 11.22 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.2158, allocations: 22.88 kB / 332.8 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.2158, allocations: 3.688 kB / 332.8 MB, free: 11.21 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.216, allocations: 209.5 kB / 333.1 MB, free: 11.07 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.216, allocations: 1.219 kB / 333.1 MB, free: 11.07 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002481/0.2163, allocations: 39 kB / 333.1 MB, free: 11.06 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.0009141/0.2172, allocations: 429 kB / 333.5 MB, free: 10.69 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002648/0.2175, allocations: 89.56 kB / 333.6 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2175, allocations: 0 / 333.6 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.2176, allocations: 53.62 kB / 333.7 MB, free: 10.63 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.218, allocations: 51.78 kB / 333.7 MB, free: 10.61 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005958/0.2186, allocations: 380.1 kB / 334.1 MB, free: 10.25 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.2189, allocations: 0.7283 MB / 334.8 MB, free: 9.496 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 8.056e-05/0.219, allocations: 33.52 kB / 334.8 MB, free: 9.465 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/0.219, allocations: 19.44 kB / 334.9 MB, free: 9.445 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.219, allocations: 3.938 kB / 334.9 MB, free: 9.441 MB / 270.1 MB Notification: Performance of Templates: time 0.005159/0.2242, allocations: 2.558 MB / 337.4 MB, free: 6.883 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)