Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001225, allocations: 178.3 kB / 17.41 MB, free: 4.293 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.368/1.368, allocations: 225.7 MB / 243.9 MB, free: 8.527 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.0007835/0.0007832, allocations: 96.95 kB / 295 MB, free: 9.527 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.3056/0.3056, allocations: 44.33 MB / 390.5 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003371/0.0003371, allocations: 8 kB / 463.1 MB, free: 480 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3147, allocations: 61.9 MB / 0.5127 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005479/0.3153, allocations: 222.7 kB / 0.5129 GB, free: 37.78 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.3166, allocations: 1.469 MB / 0.5144 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.297e-05/0.3167, allocations: 0 / 0.5144 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.3167, allocations: 0 / 0.5144 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.109e-05/0.3167, allocations: 0 / 0.5144 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.3172, allocations: 148.4 kB / 0.5145 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.062e-05/0.3172, allocations: 3 kB / 0.5145 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.296e-05/0.3173, allocations: 3.188 kB / 0.5145 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.3173, allocations: 6.984 kB / 0.5145 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.391e-05/0.3174, allocations: 7.562 kB / 0.5145 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.338e-06/0.3174, allocations: 3.938 kB / 0.5145 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003321/0.3177, allocations: 263.5 kB / 0.5148 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.326e-05/0.3177, allocations: 3.328 kB / 0.5148 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.649e-05/0.3178, allocations: 32.27 kB / 0.5148 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.318, allocations: 143.4 kB / 0.515 GB, free: 36.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.318, allocations: 0 / 0.515 GB, free: 36.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.318, allocations: 3.938 kB / 0.515 GB, free: 36.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.318, allocations: 3.031 kB / 0.515 GB, free: 36.49 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.0002744/0.3183, allocations: 324.4 kB / 0.5153 GB, free: 36.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.3183, allocations: 12.09 kB / 0.5153 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.3183, allocations: 0.9375 kB / 0.5153 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.625e-05/0.3184, allocations: 166.3 kB / 0.5154 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3184, allocations: 8.312 kB / 0.5155 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.3185, allocations: 384 / 0.5155 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.971e-05/0.3185, allocations: 40.66 kB / 0.5155 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3185, allocations: 2.719 kB / 0.5155 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.3186, allocations: 0 / 0.5155 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3186, allocations: 0 / 0.5155 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.733e-05/0.3186, allocations: 2.781 kB / 0.5155 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001009/0.3187, allocations: 148.9 kB / 0.5156 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.17e-05/0.3187, allocations: 25.33 kB / 0.5157 GB, free: 35.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.52e-05/0.3188, allocations: 7.578 kB / 0.5157 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.3188, allocations: 0 / 0.5157 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.806e-05/0.3188, allocations: 37.78 kB / 0.5157 GB, free: 35.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.3188, allocations: 0 / 0.5157 GB, free: 35.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001154/0.3189, allocations: 37.83 kB / 0.5157 GB, free: 35.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.125e-05/0.319, allocations: 51.41 kB / 0.5158 GB, free: 35.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.536e-05/0.319, allocations: 99.83 kB / 0.5159 GB, free: 35.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-06/0.319, allocations: 25.7 kB / 0.5159 GB, free: 35.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.495e-05/0.319, allocations: 82.86 kB / 0.516 GB, free: 35.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.3191, allocations: 3.906 kB / 0.516 GB, free: 35.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.3191, allocations: 0 / 0.516 GB, free: 35.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.506e-05/0.3191, allocations: 315 kB / 0.5163 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.377e-06/0.3191, allocations: 6.844 kB / 0.5163 GB, free: 34.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.552e-06/0.3192, allocations: 0 / 0.5163 GB, free: 34.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.066e-05/0.3192, allocations: 11.77 kB / 0.5163 GB, free: 34.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3192, allocations: 3.938 kB / 0.5163 GB, free: 34.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.343e-05/0.3192, allocations: 37.91 kB / 0.5164 GB, free: 34.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.3193, allocations: 6.938 kB / 0.5164 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.3193, allocations: 0 / 0.5164 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.3193, allocations: 2.875 kB / 0.5164 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.277e-05/0.3193, allocations: 4.094 kB / 0.5164 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.3194, allocations: 3.984 kB / 0.5164 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.251e-05/0.3194, allocations: 6.938 kB / 0.5164 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.3194, allocations: 0 / 0.5164 GB, free: 34.92 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.656e-05/0.3194, allocations: 111.7 kB / 0.5165 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-06/0.3194, allocations: 6.875 kB / 0.5165 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.3196, allocations: 52.06 kB / 0.5165 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3196, allocations: 3.938 kB / 0.5165 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3196, allocations: 0 / 0.5165 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.3196, allocations: 0 / 0.5165 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.533e-05/0.3196, allocations: 147.6 kB / 0.5167 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3196, allocations: 0 / 0.5167 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3197, allocations: 0 / 0.5167 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3197, allocations: 6.719 kB / 0.5167 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-06/0.3197, allocations: 0 / 0.5167 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3197, allocations: 0 / 0.5167 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3197, allocations: 4.031 kB / 0.5167 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.282e-05/0.3197, allocations: 64.55 kB / 0.5168 GB, free: 34.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.575e-05/0.3198, allocations: 81.05 kB / 0.5168 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.19e-05/0.3198, allocations: 6.656 kB / 0.5168 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.223e-05/0.3198, allocations: 2.781 kB / 0.5168 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.214e-05/0.3199, allocations: 3.188 kB / 0.5168 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.3199, allocations: 0 / 0.5168 GB, free: 34.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.915e-05/0.3199, allocations: 85.94 kB / 0.5169 GB, free: 34.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3199, allocations: 0 / 0.5169 GB, free: 34.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002195/0.3201, allocations: 39.38 kB / 0.517 GB, free: 34.3 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002192/0.3203, allocations: 141.1 kB / 0.5171 GB, free: 34.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.315e-05/0.3204, allocations: 9.75 kB / 0.5171 GB, free: 34.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3204, allocations: 0 / 0.5171 GB, free: 34.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.611e-05/0.3205, allocations: 35.95 kB / 0.5171 GB, free: 34.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.3206, allocations: 8.156 kB / 0.5172 GB, free: 34.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001731/0.3208, allocations: 84.23 kB / 0.5172 GB, free: 34.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.337e-05/0.3209, allocations: 0.6754 MB / 0.5179 GB, free: 33.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.508e-05/0.3209, allocations: 0 / 0.5179 GB, free: 33.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.819e-06/0.3209, allocations: 7.438 kB / 0.5179 GB, free: 33.36 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3209, allocations: 2.875 kB / 0.5179 GB, free: 33.36 MB / 378.7 MB Notification: Performance of Templates: time 0.002822/0.3238, allocations: 1.066 MB / 0.5189 GB, free: 33.26 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches