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/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 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 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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 107.4 kB / 17.21 MB, free: 6.293 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.001022/0.001022, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 241.8 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2121/0.2121, allocations: 44.18 MB / 336.1 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002154, allocations: 64.56 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1931, allocations: 60.82 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002817/0.196, allocations: 0.5332 MB / 469 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.1971, allocations: 301.6 kB / 469.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.312e-05/0.1972, allocations: 0 / 469.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.1972, allocations: 0 / 469.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.1972, allocations: 4 kB / 469.3 MB, free: 14.01 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.001174/0.1984, allocations: 78.81 kB / 469.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.236e-05/0.1985, allocations: 0 / 469.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.844e-05/0.1985, allocations: 4 kB / 469.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.699e-05/0.1986, allocations: 11.92 kB / 469.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.529e-05/0.1986, allocations: 0 / 469.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.454e-06/0.1986, allocations: 0 / 469.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002867/0.1989, allocations: 103.8 kB / 469.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.266e-06/0.1989, allocations: 0 / 469.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.625e-05/0.199, allocations: 0 / 469.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.1992, allocations: 87.88 kB / 469.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1993, allocations: 0 / 469.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1993, allocations: 0 / 469.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1993, allocations: 0 / 469.6 MB, free: 13.73 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.0004847/0.1998, allocations: 369.2 kB / 470 MB, free: 13.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.1998, allocations: 8.031 kB / 470 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.407e-05/0.1999, allocations: 0.9375 kB / 470 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.2001, allocations: 164.4 kB / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.2001, allocations: 384 / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.2001, allocations: 384 / 470.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.2003, allocations: 34.27 kB / 470.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.2003, allocations: 4.125 kB / 470.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.2003, allocations: 3.938 kB / 470.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.2003, allocations: 7.984 kB / 470.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.742e-05/0.2004, allocations: 3.984 kB / 470.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001769/0.2005, allocations: 149.6 kB / 470.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.064e-05/0.2006, allocations: 18.61 kB / 470.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.964e-05/0.2006, allocations: 4.859 kB / 470.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.115e-06/0.2007, allocations: 0 / 470.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.63e-05/0.2007, allocations: 72.33 kB / 470.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/0.2007, allocations: 0 / 470.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002251/0.201, allocations: 71.27 kB / 470.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.2011, allocations: 77.11 kB / 470.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.939e-05/0.2011, allocations: 89.86 kB / 470.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.2011, allocations: 25.7 kB / 470.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.515e-05/0.2012, allocations: 80.14 kB / 470.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.2012, allocations: 0 / 470.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.2013, allocations: 17.84 kB / 470.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.2014, allocations: 318.8 kB / 471.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.284e-05/0.2015, allocations: 0 / 471.1 MB, free: 12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.125e-05/0.2015, allocations: 4 kB / 471.1 MB, free: 12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.448e-05/0.2016, allocations: 60.2 kB / 471.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2016, allocations: 3.938 kB / 471.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001059/0.2017, allocations: 63.41 kB / 471.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.243e-05/0.2018, allocations: 37.69 kB / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2018, allocations: 4.094 kB / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2018, allocations: 3.938 kB / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.483e-06/0.2018, allocations: 0 / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2018, allocations: 0 / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.181e-05/0.2019, allocations: 0 / 471.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.2019, allocations: 0 / 471.3 MB, free: 11.8 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.0001155/0.202, allocations: 135.5 kB / 471.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.202, allocations: 0 / 471.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.725e-05/0.202, allocations: 11.02 kB / 471.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2021, allocations: 4 kB / 471.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.2021, allocations: 3.984 kB / 471.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2021, allocations: 4 kB / 471.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000134/0.2022, allocations: 141.7 kB / 471.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2022, allocations: 0 / 471.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.2022, allocations: 0 / 471.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2023, allocations: 0 / 471.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.2023, allocations: 7.938 kB / 471.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2023, allocations: 7.938 kB / 471.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2023, allocations: 0 / 471.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.2024, allocations: 90.83 kB / 471.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.2025, allocations: 81.11 kB / 471.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.2025, allocations: 3.938 kB / 471.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.773e-05/0.2026, allocations: 7.922 kB / 471.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-05/0.2026, allocations: 0 / 471.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.2026, allocations: 0 / 471.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.651e-05/0.2027, allocations: 79.28 kB / 471.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2027, allocations: 0 / 471.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004224/0.2031, allocations: 36.03 kB / 471.9 MB, free: 11.09 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.0008758/0.204, allocations: 285.3 kB / 472.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.2041, allocations: 59.34 kB / 472.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2041, allocations: 0 / 472.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.018e-05/0.2042, allocations: 59.39 kB / 472.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.2045, allocations: 8 kB / 472.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002524/0.2047, allocations: 74.67 kB / 472.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.2051, allocations: 0.6731 MB / 473 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.476e-06/0.2051, allocations: 0 / 473 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.211e-05/0.2051, allocations: 11.56 kB / 473 MB, free: 9.902 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2051, allocations: 0 / 473 MB, free: 9.902 MB / 350.1 MB Notification: Performance of Templates: time 0.005079/0.2102, allocations: 0.9646 MB / 474 MB, free: 8.941 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches