Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002681/0.002686, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.704/3.704, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001828/0.001828, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006442/0.0006443, allocations: 8 kB / 326.9 MB, free: 15.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1478, allocations: 47.6 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00464/0.1525, allocations: 1.474 MB / 376 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004048/0.1567, allocations: 0.8707 MB / 376.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/0.1569, allocations: 8 kB / 376.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002991/0.16, allocations: 143.6 kB / 377 MB, free: 12.92 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007412/0.1607, allocations: 103.7 kB / 377.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.1619, allocations: 127.7 kB / 377.3 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005266/0.1625, allocations: 127.8 kB / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.1627, allocations: 17.56 kB / 377.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002878/0.163, allocations: 71.69 kB / 377.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.1633, allocations: 75.67 kB / 377.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.896e-05/0.1634, allocations: 4 kB / 377.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002887/0.1637, allocations: 35.92 kB / 377.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.1638, allocations: 47.88 kB / 377.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.164, allocations: 53.58 kB / 377.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005322/0.1645, allocations: 156 kB / 377.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1646, allocations: 0 / 377.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.336e-06/0.1646, allocations: 3.984 kB / 377.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.1646, allocations: 0 / 377.8 MB, free: 12.11 MB / 282.7 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.001763/0.1664, allocations: 0.5 MB / 378.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/0.1665, allocations: 8.031 kB / 378.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.1666, allocations: 19.81 kB / 378.4 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006941/0.1674, allocations: 257.6 kB / 378.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.1674, allocations: 4 kB / 378.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.1675, allocations: 4 kB / 378.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005463/0.1681, allocations: 117.9 kB / 378.7 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.1681, allocations: 3.938 kB / 378.7 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.1682, allocations: 4 kB / 378.7 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1682, allocations: 0 / 378.7 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003858/0.1686, allocations: 47.97 kB / 378.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.1703, allocations: 0.6143 MB / 379.4 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007071/0.1711, allocations: 123.9 kB / 379.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.57e-05/0.1712, allocations: 7.984 kB / 379.5 MB, free: 10.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005703/0.1718, allocations: 122 kB / 379.7 MB, free: 10.06 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 5.17e-06/0.1718, allocations: 0 / 379.7 MB, free: 10.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.001224/0.1731, allocations: 177.3 kB / 379.8 MB, free: 9.883 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.1733, allocations: 140.5 kB / 380 MB, free: 9.715 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008712/0.1742, allocations: 284.9 kB / 380.2 MB, free: 9.426 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.649e-05/0.1743, allocations: 25.7 kB / 380.3 MB, free: 9.395 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.1745, allocations: 182.8 kB / 380.4 MB, free: 9.215 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.509e-05/0.1746, allocations: 27.77 kB / 380.5 MB, free: 9.188 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.1747, allocations: 12.06 kB / 380.5 MB, free: 9.176 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.1749, allocations: 318.8 kB / 380.8 MB, free: 8.855 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003098/0.1752, allocations: 35.92 kB / 380.8 MB, free: 8.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003452/0.1756, allocations: 78.83 kB / 380.9 MB, free: 8.723 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.1759, allocations: 44.45 kB / 381 MB, free: 8.68 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.176, allocations: 0 / 381 MB, free: 8.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007637/0.1768, allocations: 129.5 kB / 381.1 MB, free: 8.547 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.1768, allocations: 4 kB / 381.1 MB, free: 8.543 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.1769, allocations: 4 kB / 381.1 MB, free: 8.539 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.1769, allocations: 4.094 kB / 381.1 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.1772, allocations: 19.92 kB / 381.1 MB, free: 8.516 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.894e-05/0.1772, allocations: 4 kB / 381.1 MB, free: 8.512 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003794/0.1776, allocations: 15.89 kB / 381.1 MB, free: 8.496 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.02e-05/0.1777, allocations: 12 kB / 381.1 MB, free: 8.484 MB / 282.7 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.0004442/0.1782, allocations: 149.6 kB / 381.3 MB, free: 8.328 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.1783, allocations: 15.81 kB / 381.3 MB, free: 8.312 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.1785, allocations: 29.7 kB / 381.3 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-06/0.1785, allocations: 4 kB / 381.3 MB, free: 8.281 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.1785, allocations: 0 / 381.3 MB, free: 8.281 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.1786, allocations: 0 / 381.3 MB, free: 8.281 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.1792, allocations: 249.4 kB / 381.6 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.1792, allocations: 0 / 381.6 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.1793, allocations: 8 kB / 381.6 MB, free: 7.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.526e-05/0.1794, allocations: 4 kB / 381.6 MB, free: 7.977 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.1794, allocations: 0 / 381.6 MB, free: 7.977 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.154e-05/0.1795, allocations: 4 kB / 381.6 MB, free: 7.973 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1795, allocations: 0 / 381.6 MB, free: 7.973 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009227/0.1804, allocations: 209.8 kB / 381.8 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.1807, allocations: 100.8 kB / 381.9 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.81e-05/0.1808, allocations: 12.11 kB / 381.9 MB, free: 7.602 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.1811, allocations: 19.98 kB / 381.9 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.1812, allocations: 15.94 kB / 381.9 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.755e-05/0.1813, allocations: 8 kB / 382 MB, free: 7.559 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008291/0.1822, allocations: 204.5 kB / 382.2 MB, free: 7.355 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.282e-06/0.1822, allocations: 4 kB / 382.2 MB, free: 7.352 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007343/0.183, allocations: 35.98 kB / 382.2 MB, free: 7.316 MB / 282.7 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.002178/0.1852, allocations: 419.2 kB / 382.6 MB, free: 6.906 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.1864, allocations: 95.95 kB / 382.7 MB, free: 6.812 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/0.1865, allocations: 4 kB / 382.7 MB, free: 6.809 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004348/0.1869, allocations: 56.05 kB / 382.8 MB, free: 6.754 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008333/0.1878, allocations: 41.53 kB / 382.8 MB, free: 6.715 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.1895, allocations: 393.6 kB / 383.2 MB, free: 6.293 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007668/0.1903, allocations: 0.7477 MB / 383.9 MB, free: 5.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.1906, allocations: 19.44 kB / 383.9 MB, free: 5.5 MB / 282.7 MB Notification: Performance of SimCode: time 1.733e-06/0.1906, allocations: 0 / 383.9 MB, free: 5.5 MB / 282.7 MB Notification: Performance of Templates: time 0.0131/0.2037, allocations: 2.839 MB / 386.8 MB, free: 2.656 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches