Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008079/0.0008079, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003543/0.003543, allocations: 161.5 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8481/0.8481, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2373/0.2373, allocations: 34.26 MB / 295.7 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.647e-06/3.647e-06, allocations: 0 / 443.4 MB, free: 1.176 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.171e-05/4.536e-05, allocations: 2.281 kB / 443.4 MB, free: 1.172 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00187/0.001916, allocations: 487.5 kB / 443.9 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000758/0.002674, allocations: 311.2 kB / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.254e-05/0.002696, allocations: 0 / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.002714, allocations: 0 / 444.2 MB, free: 404 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.945e-06/0.002722, allocations: 0 / 444.2 MB, free: 404 kB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/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.001116/0.003838, allocations: 98.2 kB / 444.3 MB, free: 308 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.412e-05/0.003912, allocations: 11.94 kB / 444.3 MB, free: 296 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.237e-05/0.003965, allocations: 0 / 444.3 MB, free: 296 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.361e-05/0.003998, allocations: 0 / 444.3 MB, free: 296 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.606e-05/0.004024, allocations: 4 kB / 444.3 MB, free: 292 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.857e-06/0.004033, allocations: 0 / 444.3 MB, free: 292 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.004251, allocations: 111.8 kB / 444.4 MB, free: 180 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.00426, allocations: 0 / 444.4 MB, free: 180 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.53e-05/0.004286, allocations: 7.938 kB / 444.4 MB, free: 172 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.00453, allocations: 103.8 kB / 444.5 MB, free: 68 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.004534, allocations: 0 / 444.5 MB, free: 68 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.004535, allocations: 0 / 444.5 MB, free: 68 kB / 410.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.004541, allocations: 4 kB / 444.5 MB, free: 64 kB / 410.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.185/0.1896, allocations: 285.1 kB / 444.8 MB, free: 44.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.1896, allocations: 7.938 kB / 444.8 MB, free: 44.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.1896, allocations: 4.406 kB / 444.8 MB, free: 44.31 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.155e-05/0.1897, allocations: 104.5 kB / 444.9 MB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.1897, allocations: 384 / 444.9 MB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.825e-06/0.1897, allocations: 384 / 444.9 MB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.361e-05/0.1898, allocations: 59.77 kB / 445 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1898, allocations: 5.391 kB / 445 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.984e-06/0.1898, allocations: 384 / 445 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1898, allocations: 1.969 kB / 445 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.678e-05/0.1898, allocations: 34.86 kB / 445 MB, free: 44.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.729e-05/0.1899, allocations: 96.05 kB / 445.1 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.543e-05/0.1899, allocations: 44.03 kB / 445.2 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.1899, allocations: 41.09 kB / 445.2 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.693e-06/0.1899, allocations: 0 / 445.2 MB, free: 43.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.19, allocations: 56.27 kB / 445.2 MB, free: 43.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.61e-07/0.19, allocations: 2.875 kB / 445.2 MB, free: 43.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.1901, allocations: 118 kB / 445.4 MB, free: 43.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/0.1901, allocations: 79.98 kB / 445.4 MB, free: 43.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.464e-05/0.1901, allocations: 89.86 kB / 445.5 MB, free: 43.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-06/0.1901, allocations: 28.48 kB / 445.6 MB, free: 43.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.65e-06/0.1902, allocations: 80.14 kB / 445.6 MB, free: 43.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.1902, allocations: 9.062 kB / 445.6 MB, free: 43.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.1902, allocations: 12.66 kB / 445.7 MB, free: 43.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.026e-05/0.1902, allocations: 321.7 kB / 446 MB, free: 43.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.302e-05/0.1902, allocations: 26.45 kB / 446 MB, free: 43.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.843e-06/0.1902, allocations: 29.39 kB / 446 MB, free: 42.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.361e-05/0.1903, allocations: 64.02 kB / 446.1 MB, free: 42.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1903, allocations: 4.625 kB / 446.1 MB, free: 42.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.177e-05/0.1903, allocations: 91.02 kB / 446.2 MB, free: 42.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1903, allocations: 30.95 kB / 446.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.1903, allocations: 0 / 446.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1903, allocations: 0 / 446.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.1903, allocations: 0 / 446.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1903, allocations: 2.719 kB / 446.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.219e-05/0.1903, allocations: 5.844 kB / 446.2 MB, free: 42.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.1904, allocations: 3.328 kB / 446.2 MB, free: 42.78 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 () * 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 3.761e-05/0.1904, allocations: 138.2 kB / 446.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-06/0.1904, allocations: 2.438 kB / 446.4 MB, free: 42.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.015e-06/0.1904, allocations: 6.75 kB / 446.4 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1904, allocations: 3.469 kB / 446.4 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1904, allocations: 0 / 446.4 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.1904, allocations: 0 / 446.4 MB, free: 42.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.838e-05/0.1904, allocations: 103 kB / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.71e-07/0.1904, allocations: 0 / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.91e-07/0.1904, allocations: 0 / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.22e-07/0.1904, allocations: 2.844 kB / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.1904, allocations: 2.938 kB / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.1904, allocations: 2.516 kB / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.51e-07/0.1904, allocations: 3.781 kB / 446.5 MB, free: 42.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.834e-05/0.1905, allocations: 122.6 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-06/0.1905, allocations: 2.938 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.035e-06/0.1905, allocations: 0 / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.529e-06/0.1905, allocations: 3.375 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.026e-05/0.1905, allocations: 2.938 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.1905, allocations: 0.6875 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.273e-06/0.1905, allocations: 75.84 kB / 446.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.1905, allocations: 0 / 446.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001708/0.1907, allocations: 30.61 kB / 446.7 MB, free: 42.3 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) * 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.0003753/0.1911, allocations: 288.6 kB / 447 MB, free: 42.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.208e-05/0.1911, allocations: 114.1 kB / 447.1 MB, free: 42.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1912, allocations: 0 / 447.1 MB, free: 42.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.255e-05/0.1912, allocations: 84.89 kB / 447.2 MB, free: 41.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.714e-05/0.1912, allocations: 0 / 447.2 MB, free: 41.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001381/0.1914, allocations: 129.5 kB / 447.3 MB, free: 41.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.21e-05/0.1914, allocations: 61.73 kB / 447.4 MB, free: 41.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.288e-06/0.1914, allocations: 9.156 kB / 447.4 MB, free: 41.75 MB / 410.7 MB Notification: Performance of SimCode: time 3.7e-07/0.1914, allocations: 2.906 kB / 447.4 MB, free: 41.75 MB / 410.7 MB Notification: Performance of Templates: time 0.001834/0.1933, allocations: 1.177 MB / 448.6 MB, free: 41.63 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.780887882225215]