Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.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.Fluid.TestUtilities.TestRegRootDerivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|k1|k2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|k1|k2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009871/0.0009872, allocations: 174.2 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.279/1.279, allocations: 225.7 MB / 243.9 MB, free: 8.449 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.0007626/0.0007626, allocations: 91.33 kB / 295 MB, free: 9.488 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.2861/0.2861, allocations: 44.32 MB / 390.5 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.0002811, allocations: 12 kB / 463.1 MB, free: 464 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2677, allocations: 61.89 MB / 0.5127 GB, free: 37.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative): time 0.0004784/0.2682, allocations: 234.9 kB / 0.513 GB, free: 37.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002874/0.2685, allocations: 248.2 kB / 0.5132 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.303e-05/0.2685, allocations: 0 / 0.5132 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.026e-05/0.2685, allocations: 0 / 0.5132 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.969e-05/0.2686, allocations: 0.7188 kB / 0.5132 GB, free: 37.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001362/0.2687, allocations: 21.72 kB / 0.5132 GB, free: 37.57 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.695e-05/0.2687, allocations: 6.156 kB / 0.5132 GB, free: 37.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.997e-05/0.2688, allocations: 6.094 kB / 0.5132 GB, free: 37.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.131e-05/0.2688, allocations: 10.34 kB / 0.5132 GB, free: 37.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.865e-05/0.2689, allocations: 3.938 kB / 0.5132 GB, free: 37.57 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.2689, allocations: 3 kB / 0.5132 GB, free: 37.57 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.776e-05/0.269, allocations: 34.72 kB / 0.5133 GB, free: 37.55 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.818e-06/0.269, allocations: 2.75 kB / 0.5133 GB, free: 37.55 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.264e-05/0.269, allocations: 32.97 kB / 0.5133 GB, free: 37.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.997e-05/0.2691, allocations: 23.52 kB / 0.5133 GB, free: 37.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2691, allocations: 6.969 kB / 0.5133 GB, free: 37.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2691, allocations: 0 / 0.5133 GB, free: 37.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.2691, allocations: 0 / 0.5133 GB, free: 37.51 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000238/0.2693, allocations: 328.7 kB / 0.5136 GB, free: 37.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2694, allocations: 12.59 kB / 0.5137 GB, free: 37.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.894e-05/0.2695, allocations: 7.969 kB / 0.5137 GB, free: 37.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.036e-05/0.2695, allocations: 164.4 kB / 0.5138 GB, free: 36.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.2695, allocations: 384 / 0.5138 GB, free: 36.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.787e-06/0.2696, allocations: 3.156 kB / 0.5138 GB, free: 36.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.286e-05/0.2696, allocations: 63.48 kB / 0.5139 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.2697, allocations: 4.172 kB / 0.5139 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.2697, allocations: 3.938 kB / 0.5139 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2697, allocations: 0 / 0.5139 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.749e-05/0.2697, allocations: 5.812 kB / 0.5139 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001988/0.2699, allocations: 332 kB / 0.5142 GB, free: 36.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.85e-05/0.27, allocations: 25.83 kB / 0.5142 GB, free: 36.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.056e-05/0.27, allocations: 17.75 kB / 0.5143 GB, free: 36.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.27, allocations: 3.031 kB / 0.5143 GB, free: 36.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.354e-05/0.2701, allocations: 30.56 kB / 0.5143 GB, free: 36.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.2701, allocations: 4 kB / 0.5143 GB, free: 36.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001453/0.2702, allocations: 55.53 kB / 0.5143 GB, free: 36.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.693e-05/0.2702, allocations: 58.38 kB / 0.5144 GB, free: 36.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.127e-05/0.2703, allocations: 96.19 kB / 0.5145 GB, free: 36.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.62e-06/0.2703, allocations: 25.7 kB / 0.5145 GB, free: 36.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.994e-05/0.2703, allocations: 80.14 kB / 0.5146 GB, free: 36.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.087e-05/0.2703, allocations: 18.66 kB / 0.5146 GB, free: 36.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-06/0.2703, allocations: 0 / 0.5146 GB, free: 36.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.165e-05/0.2704, allocations: 315 kB / 0.5149 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.922e-05/0.2704, allocations: 10.16 kB / 0.5149 GB, free: 35.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.778e-05/0.2704, allocations: 15.5 kB / 0.5149 GB, free: 35.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.89e-05/0.2705, allocations: 37.02 kB / 0.515 GB, free: 35.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2705, allocations: 0 / 0.515 GB, free: 35.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.98e-05/0.2706, allocations: 52.12 kB / 0.515 GB, free: 35.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.2706, allocations: 5.656 kB / 0.515 GB, free: 35.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.2706, allocations: 6.906 kB / 0.515 GB, free: 35.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.2706, allocations: 0 / 0.515 GB, free: 35.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.507e-05/0.2707, allocations: 9.688 kB / 0.515 GB, free: 35.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.2707, allocations: 2.938 kB / 0.515 GB, free: 35.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.108e-05/0.2707, allocations: 4 kB / 0.5151 GB, free: 35.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.2707, allocations: 6.781 kB / 0.5151 GB, free: 35.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 4.801e-05/0.2708, allocations: 117.6 kB / 0.5152 GB, free: 35.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.053e-05/0.2708, allocations: 6.906 kB / 0.5152 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.2709, allocations: 66.73 kB / 0.5152 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.2709, allocations: 0 / 0.5152 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.2709, allocations: 0 / 0.5152 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2709, allocations: 3.938 kB / 0.5152 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.271, allocations: 162.4 kB / 0.5154 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2711, allocations: 192 / 0.5154 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.568e-05/0.2711, allocations: 10 kB / 0.5154 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2711, allocations: 0 / 0.5154 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-06/0.2711, allocations: 3 kB / 0.5154 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2711, allocations: 0 / 0.5154 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2711, allocations: 0 / 0.5154 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.02e-05/0.2712, allocations: 156.4 kB / 0.5156 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.312e-05/0.2712, allocations: 80.48 kB / 0.5156 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.2712, allocations: 3.203 kB / 0.5156 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.715e-05/0.2713, allocations: 0 / 0.5156 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.2713, allocations: 0 / 0.5156 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.2713, allocations: 6.828 kB / 0.5156 GB, free: 35.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.524e-05/0.2714, allocations: 83.22 kB / 0.5157 GB, free: 34.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2714, allocations: 6.906 kB / 0.5157 GB, free: 34.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002109/0.2716, allocations: 10.23 kB / 0.5157 GB, free: 34.96 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 8.848e-05/0.2717, allocations: 106 kB / 0.5158 GB, free: 34.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.935e-05/0.2718, allocations: 22.27 kB / 0.5159 GB, free: 34.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2718, allocations: 0 / 0.5159 GB, free: 34.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.418e-05/0.2718, allocations: 19.44 kB / 0.5159 GB, free: 34.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.272, allocations: 7.938 kB / 0.5159 GB, free: 34.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001837/0.2722, allocations: 123.8 kB / 0.516 GB, free: 34.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.578e-05/0.2723, allocations: 0.6783 MB / 0.5167 GB, free: 34.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.093e-05/0.2723, allocations: 3.281 kB / 0.5167 GB, free: 34.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.2723, allocations: 10.44 kB / 0.5167 GB, free: 34.02 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.2723, allocations: 0 / 0.5167 GB, free: 34.02 MB / 378.7 MB Notification: Performance of Templates: time 0.001893/0.2742, allocations: 429.8 kB / 0.5171 GB, free: 33.95 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRootDerivative/TestRegRootDerivative.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches