Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 174 kB / 17.41 MB, free: 4.41 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.334/1.334, allocations: 225.7 MB / 243.9 MB, free: 8.438 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.0007636/0.0007635, allocations: 93.27 kB / 295 MB, free: 9.465 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.3298/0.3298, allocations: 44.32 MB / 390.5 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 11.94 kB / 463.1 MB, free: 464 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3494, allocations: 61.9 MB / 0.5127 GB, free: 37.77 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.000702/0.3502, allocations: 205.1 kB / 0.5129 GB, free: 37.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007336/0.3509, allocations: 394.4 kB / 0.5133 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.569e-05/0.351, allocations: 0 / 0.5133 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.199e-05/0.351, allocations: 6.812 kB / 0.5133 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.623e-06/0.351, allocations: 0 / 0.5133 GB, free: 37.3 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.3513, allocations: 38 kB / 0.5133 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.723e-05/0.3514, allocations: 10.66 kB / 0.5134 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.39e-05/0.3514, allocations: 7.094 kB / 0.5134 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.657e-05/0.3514, allocations: 3.984 kB / 0.5134 GB, free: 37.26 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.586e-05/0.3515, allocations: 6.562 kB / 0.5134 GB, free: 37.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.832e-06/0.3515, allocations: 0 / 0.5134 GB, free: 37.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.3516, allocations: 53.12 kB / 0.5134 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-06/0.3517, allocations: 0 / 0.5134 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.3517, allocations: 28.42 kB / 0.5134 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.3518, allocations: 57.95 kB / 0.5135 GB, free: 37.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3519, allocations: 2.281 kB / 0.5135 GB, free: 37.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3519, allocations: 0 / 0.5135 GB, free: 37.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.3519, allocations: 0 / 0.5135 GB, free: 37.19 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.0002885/0.3522, allocations: 359.8 kB / 0.5138 GB, free: 36.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3522, allocations: 8.594 kB / 0.5139 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/0.3523, allocations: 8.938 kB / 0.5139 GB, free: 36.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.606e-05/0.3524, allocations: 166.1 kB / 0.514 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.3524, allocations: 384 / 0.514 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.405e-06/0.3524, allocations: 384 / 0.514 GB, free: 36.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.489e-05/0.3525, allocations: 28.86 kB / 0.5141 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3525, allocations: 192 / 0.5141 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.3525, allocations: 3.938 kB / 0.5141 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3526, allocations: 2.906 kB / 0.5141 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.165e-05/0.3526, allocations: 3.938 kB / 0.5141 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001197/0.3527, allocations: 148.9 kB / 0.5142 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.498e-05/0.3528, allocations: 21.42 kB / 0.5142 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.625e-05/0.3528, allocations: 7.578 kB / 0.5142 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.3528, allocations: 0 / 0.5142 GB, free: 36.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.3529, allocations: 56.27 kB / 0.5143 GB, free: 36.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3529, allocations: 0 / 0.5143 GB, free: 36.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001786/0.3531, allocations: 70.25 kB / 0.5144 GB, free: 36.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.3531, allocations: 84.02 kB / 0.5144 GB, free: 36.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.456e-05/0.3531, allocations: 93.86 kB / 0.5145 GB, free: 35.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.863e-06/0.3531, allocations: 25.7 kB / 0.5145 GB, free: 35.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.245e-05/0.3532, allocations: 80.14 kB / 0.5146 GB, free: 35.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.3532, allocations: 0 / 0.5146 GB, free: 35.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-06/0.3532, allocations: 0 / 0.5146 GB, free: 35.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.111e-05/0.3533, allocations: 316.8 kB / 0.5149 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-06/0.3533, allocations: 0 / 0.5149 GB, free: 35.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.911e-06/0.3533, allocations: 4 kB / 0.5149 GB, free: 35.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.42e-05/0.3533, allocations: 59.11 kB / 0.515 GB, free: 35.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3533, allocations: 2.562 kB / 0.515 GB, free: 35.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.552e-05/0.3534, allocations: 67.77 kB / 0.5151 GB, free: 35.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.3535, allocations: 36.02 kB / 0.5151 GB, free: 35.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3535, allocations: 0 / 0.5151 GB, free: 35.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3535, allocations: 3.938 kB / 0.5151 GB, free: 35.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.3535, allocations: 2.844 kB / 0.5151 GB, free: 35.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3535, allocations: 0 / 0.5151 GB, free: 35.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.928e-05/0.3535, allocations: 8.031 kB / 0.5151 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.3535, allocations: 0 / 0.5151 GB, free: 35.36 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 6.121e-05/0.3536, allocations: 138.3 kB / 0.5152 GB, free: 35.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.3536, allocations: 3.984 kB / 0.5152 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.254e-05/0.3537, allocations: 14.09 kB / 0.5152 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3537, allocations: 0 / 0.5152 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3537, allocations: 0 / 0.5152 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.3537, allocations: 0 / 0.5152 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.797e-05/0.3537, allocations: 148.9 kB / 0.5154 GB, free: 35.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3538, allocations: 4 kB / 0.5154 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.92e-07/0.3538, allocations: 3.875 kB / 0.5154 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.3538, allocations: 0 / 0.5154 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3538, allocations: 3.938 kB / 0.5154 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.3538, allocations: 0 / 0.5154 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3538, allocations: 0 / 0.5154 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.096e-05/0.3539, allocations: 93.8 kB / 0.5155 GB, free: 34.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.83e-05/0.3539, allocations: 77.11 kB / 0.5156 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.3539, allocations: 11.97 kB / 0.5156 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.19e-05/0.354, allocations: 3.031 kB / 0.5156 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.354, allocations: 3.234 kB / 0.5156 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-06/0.354, allocations: 0 / 0.5156 GB, free: 34.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.546e-05/0.354, allocations: 75.28 kB / 0.5157 GB, free: 34.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.354, allocations: 0 / 0.5157 GB, free: 34.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002833/0.3543, allocations: 22.66 kB / 0.5157 GB, free: 34.72 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.000642/0.355, allocations: 326.7 kB / 0.516 GB, free: 34.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.009e-05/0.3551, allocations: 61.22 kB / 0.516 GB, free: 34.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3551, allocations: 3.938 kB / 0.516 GB, free: 34.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.038e-05/0.3551, allocations: 58.31 kB / 0.5161 GB, free: 34.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.3553, allocations: 6.281 kB / 0.5161 GB, free: 34.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001735/0.3554, allocations: 80.06 kB / 0.5162 GB, free: 34.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001093/0.3556, allocations: 0.6692 MB / 0.5168 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.3556, allocations: 0 / 0.5168 GB, free: 33.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.978e-06/0.3556, allocations: 10.38 kB / 0.5169 GB, free: 33.6 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3556, allocations: 128 / 0.5169 GB, free: 33.6 MB / 378.7 MB Notification: Performance of Templates: time 0.003643/0.3593, allocations: 0.7924 MB / 0.5176 GB, free: 33.46 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches