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.009263/0.009263, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.00181/0.00181, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.732/1.732, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001275/0.001275, allocations: 48.67 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1565, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.005814/0.1623, allocations: 1.81 MB / 375 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003054/0.1654, allocations: 0.9555 MB / 375.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.1656, allocations: 0 / 375.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.1668, allocations: 179.5 kB / 376.1 MB, free: 14.36 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.0006434/0.1675, allocations: 127.5 kB / 376.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008005/0.1683, allocations: 143.6 kB / 376.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.1687, allocations: 207.4 kB / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.1689, allocations: 21.55 kB / 376.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.1692, allocations: 87.62 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1694, allocations: 87.61 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/0.1694, allocations: 8 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002978/0.1698, allocations: 59.97 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.1699, allocations: 47.83 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.1701, allocations: 75.53 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005191/0.1706, allocations: 219.2 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1706, allocations: 4 kB / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1706, allocations: 0 / 377.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1707, allocations: 0 / 377.2 MB, free: 13.29 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.00143/0.1721, allocations: 0.5234 MB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.1722, allocations: 12.02 kB / 377.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.1723, allocations: 24.66 kB / 377.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.1728, allocations: 254.9 kB / 378 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.1729, allocations: 12.38 kB / 378 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.1729, allocations: 8.125 kB / 378 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.1733, allocations: 117.9 kB / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.1734, allocations: 0 / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.1734, allocations: 7.938 kB / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1734, allocations: 0 / 378.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002653/0.1737, allocations: 51.97 kB / 378.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1748, allocations: 0.5987 MB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.1753, allocations: 127.9 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.1755, allocations: 50.55 kB / 378.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.1755, allocations: 7.984 kB / 378.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003584/0.1759, allocations: 121.8 kB / 379.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 2.605e-06/0.1759, allocations: 3.938 kB / 379.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008398/0.1768, allocations: 177.2 kB / 379.2 MB, free: 10.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.1769, allocations: 132.5 kB / 379.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.1775, allocations: 285.1 kB / 379.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.1775, allocations: 33.7 kB / 379.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.1777, allocations: 132.3 kB / 379.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.29e-05/0.1778, allocations: 23.66 kB / 379.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.003e-05/0.1779, allocations: 33.7 kB / 379.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.1781, allocations: 342.8 kB / 380.2 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.1783, allocations: 27.98 kB / 380.2 MB, free: 9.918 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.1786, allocations: 81.98 kB / 380.3 MB, free: 9.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.1789, allocations: 92.72 kB / 380.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1789, allocations: 4.031 kB / 380.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005153/0.1795, allocations: 141.4 kB / 380.5 MB, free: 9.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.1795, allocations: 11.98 kB / 380.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.1795, allocations: 0 / 380.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.1796, allocations: 0 / 380.6 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.1798, allocations: 15.94 kB / 380.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.761e-05/0.1798, allocations: 4 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.18, allocations: 27.77 kB / 380.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.1801, allocations: 8.094 kB / 380.6 MB, free: 9.496 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.0002339/0.1803, allocations: 145.6 kB / 380.8 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/0.1804, allocations: 23.72 kB / 380.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.524e-05/0.1805, allocations: 25.7 kB / 380.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.1805, allocations: 0 / 380.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.1805, allocations: 4 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.1806, allocations: 3.938 kB / 380.8 MB, free: 9.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004113/0.181, allocations: 241.5 kB / 381 MB, free: 9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.181, allocations: 4 kB / 381 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.716e-05/0.1811, allocations: 11.94 kB / 381.1 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.1811, allocations: 0 / 381.1 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.1811, allocations: 7.984 kB / 381.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.1811, allocations: 0 / 381.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1811, allocations: 3.938 kB / 381.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005348/0.1817, allocations: 178.5 kB / 381.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1818, allocations: 100.8 kB / 381.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.307e-05/0.1819, allocations: 4.125 kB / 381.3 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.1821, allocations: 15.98 kB / 381.4 MB, free: 8.637 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.1822, allocations: 23.91 kB / 381.4 MB, free: 8.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.1822, allocations: 4 kB / 381.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000342/0.1826, allocations: 212.5 kB / 381.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1826, allocations: 0 / 381.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004659/0.1831, allocations: 35.94 kB / 381.6 MB, free: 8.371 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.001637/0.1847, allocations: 416.6 kB / 382 MB, free: 7.953 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004842/0.1852, allocations: 91.97 kB / 382.1 MB, free: 7.863 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1853, allocations: 0 / 382.1 MB, free: 7.863 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.1855, allocations: 60.03 kB / 382.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006599/0.1862, allocations: 56.48 kB / 382.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1872, allocations: 344.6 kB / 382.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.1878, allocations: 0.7319 MB / 383.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.1879, allocations: 25.53 kB / 383.3 MB, free: 6.598 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.731e-05/0.188, allocations: 23.42 kB / 383.4 MB, free: 6.574 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.188, allocations: 0 / 383.4 MB, free: 6.574 MB / 318.1 MB Notification: Performance of Templates: time 0.01314/0.2012, allocations: 2.756 MB / 386.1 MB, free: 3.812 MB / 318.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)