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.001518/0.001518, allocations: 110.1 kB / 17.86 MB, free: 5.504 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.001599/0.001599, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.188/2.188, allocations: 222.9 MB / 242.4 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.3825/0.3825, allocations: 44.17 MB / 336.8 MB, free: 2.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 63.17 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.189, allocations: 60.82 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.003111/0.1922, allocations: 0.5448 MB / 469.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.1933, allocations: 301.6 kB / 470 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.845e-05/0.1934, allocations: 3.828 kB / 470 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.725e-05/0.1934, allocations: 0 / 470 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.926e-06/0.1935, allocations: 0 / 470 MB, free: 14 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.001331/0.1948, allocations: 81.61 kB / 470.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.1949, allocations: 3.938 kB / 470.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.878e-05/0.1949, allocations: 3.938 kB / 470.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.338e-05/0.195, allocations: 7.984 kB / 470.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.636e-05/0.195, allocations: 4 kB / 470.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-06/0.195, allocations: 0 / 470.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000323/0.1954, allocations: 103.9 kB / 470.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.1954, allocations: 0 / 470.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.1954, allocations: 0 / 470.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.1956, allocations: 59.84 kB / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1957, allocations: 0 / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1957, allocations: 0 / 470.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1957, allocations: 0 / 470.3 MB, free: 13.75 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.0005095/0.1962, allocations: 357.3 kB / 470.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.1963, allocations: 12.03 kB / 470.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.1963, allocations: 0.9375 kB / 470.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.1965, allocations: 176.4 kB / 470.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.1965, allocations: 384 / 470.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.1966, allocations: 384 / 470.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.1967, allocations: 30.2 kB / 470.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1967, allocations: 4.188 kB / 470.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.1967, allocations: 3.938 kB / 470.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1968, allocations: 0 / 470.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.133e-05/0.1968, allocations: 4 kB / 470.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002448/0.1971, allocations: 145.7 kB / 471 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.179e-05/0.1971, allocations: 22.61 kB / 471 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.518e-05/0.1972, allocations: 4.859 kB / 471 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.1972, allocations: 0 / 471 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.82e-05/0.1973, allocations: 64.27 kB / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.1973, allocations: 0 / 471.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002667/0.1976, allocations: 71.33 kB / 471.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.076e-05/0.1977, allocations: 77.11 kB / 471.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.104e-05/0.1977, allocations: 93.86 kB / 471.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.1978, allocations: 25.7 kB / 471.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.049e-05/0.1978, allocations: 84.08 kB / 471.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.373e-05/0.1979, allocations: 0 / 471.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.1979, allocations: 13.72 kB / 471.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1981, allocations: 311 kB / 471.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.351e-05/0.1981, allocations: 4 kB / 471.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.489e-05/0.1981, allocations: 7.984 kB / 471.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.734e-05/0.1982, allocations: 64.2 kB / 471.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1982, allocations: 0 / 471.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001059/0.1984, allocations: 59.41 kB / 471.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.372e-05/0.1984, allocations: 37.64 kB / 471.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1984, allocations: 0 / 471.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.015e-05/0.1985, allocations: 7.922 kB / 471.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.866e-06/0.1985, allocations: 4.094 kB / 471.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.1985, allocations: 0 / 471.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.27e-05/0.1985, allocations: 0 / 471.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.1985, allocations: 0 / 471.9 MB, free: 11.82 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.0001149/0.1987, allocations: 135.5 kB / 472 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.1987, allocations: 0 / 472 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.984e-05/0.1987, allocations: 11.02 kB / 472.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.1987, allocations: 0 / 472.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1987, allocations: 0 / 472.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1988, allocations: 8 kB / 472.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.1989, allocations: 153.7 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.1989, allocations: 3.938 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.1989, allocations: 0 / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1989, allocations: 0 / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.199, allocations: 3.938 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.199, allocations: 4 kB / 472.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.199, allocations: 0 / 472.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.1991, allocations: 90.83 kB / 472.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.793e-05/0.1992, allocations: 81.11 kB / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.1992, allocations: 3.938 kB / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.36e-05/0.1992, allocations: 0 / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.829e-05/0.1993, allocations: 0 / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.1993, allocations: 0 / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.866e-05/0.1993, allocations: 79.28 kB / 472.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1993, allocations: 3.938 kB / 472.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004147/0.1998, allocations: 39.98 kB / 472.5 MB, free: 11.11 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.0009552/0.2007, allocations: 280.7 kB / 472.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.2009, allocations: 67.34 kB / 472.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.2009, allocations: 0 / 472.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.461e-05/0.201, allocations: 55.41 kB / 472.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.2012, allocations: 4 kB / 472.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002856/0.2015, allocations: 104.4 kB / 473 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.2019, allocations: 0.6731 MB / 473.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.809e-05/0.2019, allocations: 15.31 kB / 473.7 MB, free: 9.891 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2019, allocations: 0 / 473.7 MB, free: 9.891 MB / 350.1 MB Notification: Performance of Templates: time 0.004508/0.2064, allocations: 1.147 MB / 474.9 MB, free: 8.742 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/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_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches