Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001445/0.001445, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001779/0.00178, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.657/1.657, allocations: 227.4 MB / 247.1 MB, free: 10.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2312/0.2312, allocations: 46.1 MB / 344.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.001839, allocations: 77.44 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1718, allocations: 62.44 MB / 480.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002753/0.1746, allocations: 0.5333 MB / 480.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.1759, allocations: 297.8 kB / 481 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.012e-05/0.176, allocations: 0 / 481 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.804e-05/0.176, allocations: 0 / 481 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.014e-06/0.1761, allocations: 0 / 481 MB, free: 4.812 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:221:3-287:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Streams‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.1774, allocations: 92.95 kB / 481.1 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.062e-05/0.1775, allocations: 4 kB / 481.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.1775, allocations: 0 / 481.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.007e-05/0.1775, allocations: 3.938 kB / 481.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.636e-05/0.1776, allocations: 0 / 481.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.455e-06/0.1776, allocations: 4 kB / 481.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003017/0.1779, allocations: 103.9 kB / 481.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.178, allocations: 3.938 kB / 481.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.178, allocations: 3.984 kB / 481.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.1782, allocations: 55.91 kB / 481.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1782, allocations: 0 / 481.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1782, allocations: 0 / 481.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1783, allocations: 0 / 481.2 MB, free: 4.551 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004731/0.1787, allocations: 365.2 kB / 481.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.1788, allocations: 8.031 kB / 481.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.686e-05/0.1788, allocations: 4.938 kB / 481.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.179, allocations: 160.4 kB / 481.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.179, allocations: 12.36 kB / 481.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.1791, allocations: 384 / 481.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.1792, allocations: 30.2 kB / 481.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-06/0.1792, allocations: 192 / 481.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.1792, allocations: 7.938 kB / 481.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1792, allocations: 0 / 481.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.25e-05/0.1793, allocations: 0 / 481.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002036/0.1795, allocations: 145.7 kB / 482 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.017e-05/0.1796, allocations: 26.59 kB / 482 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.619e-05/0.1796, allocations: 4.859 kB / 482 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.1796, allocations: 0 / 482 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.967e-05/0.1797, allocations: 60.27 kB / 482 MB, free: 3.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.144e-06/0.1797, allocations: 4 kB / 482 MB, free: 3.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002132/0.18, allocations: 59.34 kB / 482.1 MB, free: 3.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.816e-05/0.1801, allocations: 93.22 kB / 482.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.236e-05/0.1801, allocations: 89.86 kB / 482.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1802, allocations: 25.7 kB / 482.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.1802, allocations: 80.14 kB / 482.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.1802, allocations: 0 / 482.4 MB, free: 3.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.1803, allocations: 13.72 kB / 482.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1804, allocations: 310.8 kB / 482.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.763e-05/0.1805, allocations: 0 / 482.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.002e-05/0.1805, allocations: 7.938 kB / 482.7 MB, free: 2.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.13e-05/0.1806, allocations: 68.2 kB / 482.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1806, allocations: 0 / 482.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001205/0.1807, allocations: 63.39 kB / 482.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.343e-05/0.1808, allocations: 29.7 kB / 482.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1808, allocations: 0 / 482.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.1809, allocations: 7.938 kB / 482.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.694e-06/0.1809, allocations: 0 / 482.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.1809, allocations: 96 / 482.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.204e-05/0.1809, allocations: 4 kB / 482.9 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.1809, allocations: 3.938 kB / 482.9 MB, free: 2.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001244/0.1811, allocations: 139.5 kB / 483 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.1811, allocations: 0 / 483 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.75e-05/0.1811, allocations: 11.06 kB / 483 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.1811, allocations: 0 / 483 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1812, allocations: 0 / 483 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.1812, allocations: 0 / 483 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.1813, allocations: 153.7 kB / 483.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.381e-06/0.1814, allocations: 4 kB / 483.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.342e-06/0.1814, allocations: 3.938 kB / 483.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1814, allocations: 0 / 483.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1814, allocations: 3.938 kB / 483.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.1814, allocations: 0 / 483.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.1814, allocations: 4 kB / 483.2 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.1816, allocations: 86.83 kB / 483.3 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.1817, allocations: 81.14 kB / 483.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.1817, allocations: 11.94 kB / 483.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.617e-05/0.1818, allocations: 0 / 483.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.99e-05/0.1818, allocations: 0 / 483.4 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.1818, allocations: 3.984 kB / 483.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.893e-05/0.1819, allocations: 75.28 kB / 483.5 MB, free: 1.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.1819, allocations: 0 / 483.5 MB, free: 1.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.1823, allocations: 35.98 kB / 483.5 MB, free: 1.918 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0009893/0.1833, allocations: 278.2 kB / 483.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001441/0.1835, allocations: 67.33 kB / 483.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.1835, allocations: 4.062 kB / 483.8 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.517e-05/0.1836, allocations: 55.41 kB / 483.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.1838, allocations: 0 / 483.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002949/0.1841, allocations: 106.5 kB / 484 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.1845, allocations: 0.669 MB / 484.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.377e-05/0.1846, allocations: 11.44 kB / 484.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1846, allocations: 0 / 484.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of Templates: time 0.004635/0.1892, allocations: 1.155 MB / 485.8 MB, free: 15.54 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches