Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008955/0.0008956, 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.358/1.358, allocations: 225.7 MB / 243.9 MB, free: 8.457 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.0008317/0.0008317, allocations: 89.81 kB / 295 MB, free: 9.504 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.321/0.321, allocations: 44.32 MB / 390.5 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003001, allocations: 8 kB / 463.1 MB, free: 496 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3058, allocations: 61.91 MB / 0.5127 GB, free: 37.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0005934/0.3064, allocations: 257 kB / 0.513 GB, free: 37.81 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004119/0.3069, allocations: 469.2 kB / 0.5134 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.023e-05/0.3069, allocations: 2.906 kB / 0.5134 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.198e-05/0.3069, allocations: 0 / 0.5134 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.3071, allocations: 20.2 kB / 0.5135 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.046e-06/0.3071, allocations: 0 / 0.5135 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.549e-05/0.3072, allocations: 23.86 kB / 0.5135 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.876e-05/0.3073, allocations: 2.969 kB / 0.5135 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.3073, allocations: 14.06 kB / 0.5135 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.747e-05/0.3073, allocations: 14 kB / 0.5135 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.556e-06/0.3073, allocations: 2.938 kB / 0.5135 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.3075, allocations: 57.97 kB / 0.5136 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.729e-06/0.3075, allocations: 3.938 kB / 0.5136 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.497e-05/0.3075, allocations: 40.91 kB / 0.5136 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.543e-05/0.3076, allocations: 32.91 kB / 0.5136 GB, free: 37.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3076, allocations: 0 / 0.5136 GB, free: 37.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3076, allocations: 6.781 kB / 0.5136 GB, free: 37.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.3076, allocations: 0 / 0.5136 GB, free: 37.22 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000232/0.3079, allocations: 335.4 kB / 0.514 GB, free: 36.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.3079, allocations: 11.06 kB / 0.514 GB, free: 36.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.308, allocations: 4.875 kB / 0.514 GB, free: 36.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.096e-05/0.3081, allocations: 170.7 kB / 0.5141 GB, free: 36.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.3081, allocations: 384 / 0.5141 GB, free: 36.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.3081, allocations: 7.406 kB / 0.5142 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.3082, allocations: 56.5 kB / 0.5142 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3082, allocations: 192 / 0.5142 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.3082, allocations: 3.938 kB / 0.5142 GB, free: 36.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3083, allocations: 3.938 kB / 0.5142 GB, free: 36.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.523e-05/0.3084, allocations: 60.42 kB / 0.5143 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.3085, allocations: 176.7 kB / 0.5144 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.3086, allocations: 82.2 kB / 0.5145 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.266e-05/0.3087, allocations: 25.2 kB / 0.5145 GB, free: 36.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002815/0.309, allocations: 256.7 kB / 0.5148 GB, free: 36.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.747e-05/0.309, allocations: 40.67 kB / 0.5148 GB, free: 35.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.309, allocations: 0 / 0.5148 GB, free: 35.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002048/0.3092, allocations: 107.2 kB / 0.5149 GB, free: 35.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.145e-05/0.3093, allocations: 51.41 kB / 0.515 GB, free: 35.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.573e-05/0.3093, allocations: 92.39 kB / 0.5151 GB, free: 35.76 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.3093, allocations: 29.7 kB / 0.5151 GB, free: 35.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.788e-05/0.3094, allocations: 80.14 kB / 0.5152 GB, free: 35.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.3094, allocations: 37.05 kB / 0.5152 GB, free: 35.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.3094, allocations: 0 / 0.5152 GB, free: 35.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.349e-05/0.3095, allocations: 318.2 kB / 0.5155 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.903e-05/0.3095, allocations: 19.5 kB / 0.5155 GB, free: 35.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.365e-05/0.3095, allocations: 19.78 kB / 0.5155 GB, free: 35.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.63e-05/0.3096, allocations: 50.67 kB / 0.5156 GB, free: 35.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.3096, allocations: 0 / 0.5156 GB, free: 35.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.852e-05/0.3097, allocations: 84.98 kB / 0.5157 GB, free: 35.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.3097, allocations: 5.625 kB / 0.5157 GB, free: 35.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3097, allocations: 3.938 kB / 0.5157 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3098, allocations: 0 / 0.5157 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.347e-05/0.3099, allocations: 17.2 kB / 0.5157 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.3099, allocations: 0 / 0.5157 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.39e-05/0.3099, allocations: 14.94 kB / 0.5157 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.3099, allocations: 0 / 0.5157 GB, free: 35.19 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 (10): * Single equations (assignments): 10 * 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.994e-05/0.31, allocations: 113.2 kB / 0.5158 GB, free: 35.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-06/0.31, allocations: 2.75 kB / 0.5158 GB, free: 35.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001561/0.3101, allocations: 102.1 kB / 0.5159 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3101, allocations: 0 / 0.5159 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3102, allocations: 384 / 0.5159 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3102, allocations: 3.281 kB / 0.5159 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.943e-05/0.3102, allocations: 188.6 kB / 0.5161 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3103, allocations: 0 / 0.5161 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/0.3103, allocations: 29.75 kB / 0.5161 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3103, allocations: 0 / 0.5161 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.3103, allocations: 3.938 kB / 0.5161 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3103, allocations: 0 / 0.5161 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3104, allocations: 2.406 kB / 0.5161 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000106/0.3105, allocations: 110.5 kB / 0.5162 GB, free: 34.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.3105, allocations: 85.09 kB / 0.5163 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.3105, allocations: 10.02 kB / 0.5163 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.275e-05/0.3105, allocations: 0 / 0.5163 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.074e-05/0.3106, allocations: 7 kB / 0.5163 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.3106, allocations: 3 kB / 0.5163 GB, free: 34.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.586e-05/0.3106, allocations: 78.56 kB / 0.5164 GB, free: 34.51 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3106, allocations: 0 / 0.5164 GB, free: 34.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001978/0.3108, allocations: 15.34 kB / 0.5164 GB, free: 34.5 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 (10): * Single equations (assignments): 10 * 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 0.0001284/0.3109, allocations: 112.5 kB / 0.5165 GB, free: 34.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00012/0.3111, allocations: 57.64 kB / 0.5166 GB, free: 34.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3111, allocations: 0 / 0.5166 GB, free: 34.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.718e-05/0.3111, allocations: 34.91 kB / 0.5166 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/0.3113, allocations: 0.8594 kB / 0.5166 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003057/0.3116, allocations: 150.4 kB / 0.5168 GB, free: 34.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.3117, allocations: 0.6849 MB / 0.5174 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.343e-05/0.3118, allocations: 6.328 kB / 0.5174 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.275e-05/0.3118, allocations: 12.75 kB / 0.5175 GB, free: 33.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.3118, allocations: 3.938 kB / 0.5175 GB, free: 33.53 MB / 378.7 MB Notification: Performance of Templates: time 0.002309/0.3141, allocations: 0.6241 MB / 0.5181 GB, free: 33.44 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches