Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000846/0.000846, allocations: 174.2 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 225.7 MB / 243.9 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000812/0.000812, allocations: 81.17 kB / 295 MB, free: 9.5 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2936/0.2936, allocations: 44.31 MB / 390.5 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003163/0.0003163, allocations: 8 kB / 463.1 MB, free: 480 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3731, allocations: 61.9 MB / 0.5127 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006382/0.3738, allocations: 211.8 kB / 0.5129 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007361/0.3745, allocations: 0.512 MB / 0.5134 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.261e-05/0.3745, allocations: 0 / 0.5134 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.3746, allocations: 0 / 0.5134 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.252e-06/0.3746, allocations: 2.875 kB / 0.5134 GB, free: 37.32 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.000923/0.3755, allocations: 74.86 kB / 0.5135 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.515e-05/0.3756, allocations: 6.125 kB / 0.5135 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.954e-05/0.3756, allocations: 0 / 0.5135 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.027e-05/0.3756, allocations: 7.984 kB / 0.5135 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.617e-05/0.3757, allocations: 0 / 0.5135 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.592e-06/0.3757, allocations: 6.875 kB / 0.5135 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.3759, allocations: 104.5 kB / 0.5136 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.845e-06/0.3759, allocations: 0 / 0.5136 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.96e-05/0.3759, allocations: 25.7 kB / 0.5136 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.3761, allocations: 79.56 kB / 0.5137 GB, free: 37.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.3761, allocations: 0 / 0.5137 GB, free: 37.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3761, allocations: 0 / 0.5137 GB, free: 37.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.3761, allocations: 0 / 0.5137 GB, free: 37.18 MB / 378.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.0002461/0.3764, allocations: 371.9 kB / 0.5141 GB, free: 36.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3764, allocations: 10.97 kB / 0.5141 GB, free: 36.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.247e-05/0.3764, allocations: 0.9375 kB / 0.5141 GB, free: 36.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.086e-05/0.3765, allocations: 160.4 kB / 0.5142 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.3765, allocations: 384 / 0.5142 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.3765, allocations: 3.344 kB / 0.5142 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.877e-05/0.3766, allocations: 33.53 kB / 0.5143 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.3766, allocations: 192 / 0.5143 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.3766, allocations: 6.938 kB / 0.5143 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.3767, allocations: 4 kB / 0.5143 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.572e-05/0.3767, allocations: 0 / 0.5143 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.847e-05/0.3768, allocations: 148.6 kB / 0.5144 GB, free: 36.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.429e-05/0.3768, allocations: 17.95 kB / 0.5144 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.18e-05/0.3768, allocations: 7.766 kB / 0.5145 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.262e-06/0.3768, allocations: 0 / 0.5145 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.3769, allocations: 56.27 kB / 0.5145 GB, free: 36.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.3769, allocations: 7.938 kB / 0.5145 GB, free: 36.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.377, allocations: 75.36 kB / 0.5146 GB, free: 36.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.3771, allocations: 77.11 kB / 0.5147 GB, free: 36.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.241e-05/0.3771, allocations: 93.8 kB / 0.5147 GB, free: 35.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-06/0.3771, allocations: 28.48 kB / 0.5148 GB, free: 35.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.3e-05/0.3771, allocations: 80.14 kB / 0.5149 GB, free: 35.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.3771, allocations: 0 / 0.5149 GB, free: 35.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-06/0.3772, allocations: 0 / 0.5149 GB, free: 35.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.447e-05/0.3772, allocations: 315 kB / 0.5152 GB, free: 35.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.655e-06/0.3772, allocations: 2.812 kB / 0.5152 GB, free: 35.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.479e-06/0.3772, allocations: 4 kB / 0.5152 GB, free: 35.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.114e-05/0.3773, allocations: 66.31 kB / 0.5152 GB, free: 35.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.3773, allocations: 0 / 0.5152 GB, free: 35.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.913e-05/0.3773, allocations: 60.16 kB / 0.5153 GB, free: 35.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.3774, allocations: 28.61 kB / 0.5153 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3774, allocations: 6.359 kB / 0.5153 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.3774, allocations: 4.031 kB / 0.5153 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.3774, allocations: 4 kB / 0.5153 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.3774, allocations: 3.938 kB / 0.5153 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.3774, allocations: 0 / 0.5153 GB, free: 35.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.3774, allocations: 6.906 kB / 0.5153 GB, free: 35.35 MB / 378.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 5.001e-05/0.3775, allocations: 136.1 kB / 0.5155 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-06/0.3775, allocations: 2.875 kB / 0.5155 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.009e-05/0.3775, allocations: 14.28 kB / 0.5155 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.3775, allocations: 0 / 0.5155 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3775, allocations: 7.234 kB / 0.5155 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3775, allocations: 0 / 0.5155 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.725e-05/0.3776, allocations: 144.6 kB / 0.5156 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3776, allocations: 0 / 0.5156 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.452e-06/0.3776, allocations: 0 / 0.5156 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.3776, allocations: 3.938 kB / 0.5156 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.3776, allocations: 7.172 kB / 0.5156 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.3776, allocations: 2.75 kB / 0.5156 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3776, allocations: 0 / 0.5156 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.798e-05/0.3777, allocations: 92.42 kB / 0.5157 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.903e-05/0.3777, allocations: 77.11 kB / 0.5158 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.3777, allocations: 7.125 kB / 0.5158 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-06/0.3778, allocations: 0 / 0.5158 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.515e-05/0.3778, allocations: 0 / 0.5158 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.3778, allocations: 0 / 0.5158 GB, free: 34.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.537e-05/0.3778, allocations: 75.28 kB / 0.5159 GB, free: 34.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3778, allocations: 3.062 kB / 0.5159 GB, free: 34.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002696/0.3781, allocations: 36.72 kB / 0.5159 GB, free: 34.7 MB / 378.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.0005353/0.3786, allocations: 323.3 kB / 0.5162 GB, free: 34.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.713e-05/0.3787, allocations: 68.94 kB / 0.5163 GB, free: 34.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3787, allocations: 3.938 kB / 0.5163 GB, free: 34.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.082e-05/0.3788, allocations: 57.16 kB / 0.5163 GB, free: 34.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.3789, allocations: 6.688 kB / 0.5164 GB, free: 34.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000144/0.379, allocations: 80.02 kB / 0.5164 GB, free: 34.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.966e-05/0.3792, allocations: 0.6734 MB / 0.5171 GB, free: 33.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.3792, allocations: 0 / 0.5171 GB, free: 33.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.334e-06/0.3792, allocations: 8.438 kB / 0.5171 GB, free: 33.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3792, allocations: 5.25 kB / 0.5171 GB, free: 33.58 MB / 378.7 MB Notification: Performance of Templates: time 0.003039/0.3822, allocations: 0.9489 MB / 0.518 GB, free: 33.45 MB / 378.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