Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000926/0.0009261, allocations: 180.4 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 221.3 MB / 236 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008381/0.0008382, allocations: 95.97 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1697/0.1697, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.231e-05/3.232e-05, allocations: 4 kB / 451.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.116, allocations: 61.91 MB / 0.5017 GB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3524/0.4685, allocations: 86.01 MB / 0.5857 GB, free: 3.336 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.4688, allocations: 63.97 kB / 0.5858 GB, free: 3.273 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005989/0.4748, allocations: 2.295 MB / 0.588 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4748, allocations: 4 kB / 0.588 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.4748, allocations: 4 kB / 0.588 GB, free: 0.9844 MB / 394.7 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.0003143/0.4752, allocations: 360.1 kB / 0.5883 GB, free: 0.582 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.4752, allocations: 12.03 kB / 0.5884 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.41e-05/0.4753, allocations: 0 / 0.5884 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.4754, allocations: 163.1 kB / 0.5885 GB, free: 380 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.4754, allocations: 0 / 0.5885 GB, free: 380 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.4754, allocations: 0 / 0.5885 GB, free: 380 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.694e-05/0.4755, allocations: 37.66 kB / 0.5885 GB, free: 336 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.4755, allocations: 0 / 0.5885 GB, free: 336 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.278e-06/0.4755, allocations: 3.938 kB / 0.5886 GB, free: 332 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.4755, allocations: 0 / 0.5886 GB, free: 332 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.112e-05/0.4756, allocations: 3.938 kB / 0.5886 GB, free: 328 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001475/0.4757, allocations: 153.7 kB / 0.5887 GB, free: 124 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.381e-05/0.4758, allocations: 18.52 kB / 0.5887 GB, free: 96 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.57e-05/0.4758, allocations: 8.953 kB / 0.5887 GB, free: 84 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.4758, allocations: 4 kB / 0.5887 GB, free: 80 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/0.4759, allocations: 60.22 kB / 0.5888 GB, free: 4 kB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.4759, allocations: 0 / 0.5888 GB, free: 4 kB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001961/0.4761, allocations: 67.34 kB / 0.5889 GB, free: 15.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.4761, allocations: 77.11 kB / 0.5889 GB, free: 15.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.546e-05/0.4762, allocations: 88.98 kB / 0.589 GB, free: 15.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.4762, allocations: 25.7 kB / 0.589 GB, free: 15.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.746e-05/0.4762, allocations: 84.12 kB / 0.5891 GB, free: 15.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.4763, allocations: 4.031 kB / 0.5891 GB, free: 15.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-06/0.4763, allocations: 0 / 0.5891 GB, free: 15.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.4764, allocations: 314.8 kB / 0.5894 GB, free: 15.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-06/0.4764, allocations: 0 / 0.5894 GB, free: 15.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.439e-06/0.4764, allocations: 0 / 0.5894 GB, free: 15.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.898e-05/0.4764, allocations: 29.7 kB / 0.5894 GB, free: 15.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4764, allocations: 0 / 0.5894 GB, free: 15.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.247e-05/0.4765, allocations: 59.41 kB / 0.5895 GB, free: 15.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.4766, allocations: 41.78 kB / 0.5895 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.4766, allocations: 0 / 0.5895 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.4766, allocations: 3.953 kB / 0.5895 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.4766, allocations: 3.938 kB / 0.5896 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.4766, allocations: 0 / 0.5896 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.148e-05/0.4766, allocations: 0 / 0.5896 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.4766, allocations: 4 kB / 0.5896 GB, free: 15.14 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.677e-05/0.4767, allocations: 126.7 kB / 0.5897 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.572e-06/0.4768, allocations: 0 / 0.5897 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.523e-05/0.4768, allocations: 11.08 kB / 0.5897 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.4768, allocations: 7.984 kB / 0.5897 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4768, allocations: 7.938 kB / 0.5897 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.4768, allocations: 0 / 0.5897 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.519e-05/0.4769, allocations: 141.7 kB / 0.5898 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.4769, allocations: 4 kB / 0.5898 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.4769, allocations: 0 / 0.5898 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.4769, allocations: 0 / 0.5898 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.4769, allocations: 8 kB / 0.5899 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4769, allocations: 3.938 kB / 0.5899 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.477, allocations: 0 / 0.5899 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.976e-05/0.4771, allocations: 98.72 kB / 0.5899 GB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.1e-05/0.4771, allocations: 81.05 kB / 0.59 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.4771, allocations: 4 kB / 0.59 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-06/0.4771, allocations: 0 / 0.59 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.509e-05/0.4772, allocations: 3.984 kB / 0.59 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.4772, allocations: 4 kB / 0.59 GB, free: 14.54 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.002e-05/0.4772, allocations: 79.23 kB / 0.5901 GB, free: 14.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4772, allocations: 4.031 kB / 0.5901 GB, free: 14.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002495/0.4775, allocations: 32 kB / 0.5901 GB, free: 14.42 MB / 410.7 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) * 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 (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.0004832/0.4779, allocations: 283 kB / 0.5904 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.899e-05/0.478, allocations: 55.41 kB / 0.5905 GB, free: 14.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.478, allocations: 0 / 0.5905 GB, free: 14.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.935e-05/0.4781, allocations: 59.34 kB / 0.5905 GB, free: 14.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.2e-05/0.4782, allocations: 4 kB / 0.5905 GB, free: 14.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001282/0.4783, allocations: 51.66 kB / 0.5906 GB, free: 13.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.4785, allocations: 0.6692 MB / 0.5912 GB, free: 13.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.4785, allocations: 8.125 kB / 0.5912 GB, free: 13.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.098e-05/0.4786, allocations: 7.438 kB / 0.5912 GB, free: 13.27 MB / 410.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4786, allocations: 3.938 kB / 0.5913 GB, free: 13.27 MB / 410.7 MB Notification: Performance of Templates: time 0.002885/0.4814, allocations: 0.9252 MB / 0.5922 GB, free: 12.34 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches