Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 117.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 185 kB / 18.71 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2952/0.2952, allocations: 44.19 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 67.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3136, allocations: 60.82 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001552/0.3152, allocations: 0.54 MB / 0.5194 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003713/0.3156, allocations: 150.7 kB / 0.5196 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.678e-05/0.3156, allocations: 0 / 0.5196 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.3156, allocations: 3.938 kB / 0.5196 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.3159, allocations: 43 kB / 0.5196 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.89e-06/0.3159, allocations: 0 / 0.5196 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.247e-05/0.316, allocations: 28.77 kB / 0.5196 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.716e-05/0.316, allocations: 7.328 kB / 0.5196 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.212e-05/0.3161, allocations: 8.953 kB / 0.5196 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.521e-05/0.3161, allocations: 15.16 kB / 0.5197 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.3162, allocations: 2.156 kB / 0.5197 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.3163, allocations: 49.38 kB / 0.5197 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.3163, allocations: 5.859 kB / 0.5197 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.929e-05/0.3163, allocations: 15.91 kB / 0.5197 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.3165, allocations: 41.17 kB / 0.5198 GB, free: 3.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3165, allocations: 5.125 kB / 0.5198 GB, free: 3.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3165, allocations: 0 / 0.5198 GB, free: 3.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3165, allocations: 0 / 0.5198 GB, free: 3.09 MB / 382.1 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.0002629/0.3168, allocations: 332.3 kB / 0.5201 GB, free: 2.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3168, allocations: 13.16 kB / 0.5201 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.3168, allocations: 7.156 kB / 0.5201 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.344e-05/0.3169, allocations: 170.6 kB / 0.5203 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.3169, allocations: 2.812 kB / 0.5203 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.317, allocations: 6.344 kB / 0.5203 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.3171, allocations: 63.92 kB / 0.5203 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3171, allocations: 192 / 0.5203 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.3171, allocations: 13.02 kB / 0.5204 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3171, allocations: 1.188 kB / 0.5204 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.3172, allocations: 50.7 kB / 0.5204 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/0.3174, allocations: 168.6 kB / 0.5206 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.3175, allocations: 81.5 kB / 0.5206 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.835e-05/0.3176, allocations: 34.59 kB / 0.5207 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002757/0.3179, allocations: 251.7 kB / 0.5209 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.3179, allocations: 32.33 kB / 0.5209 GB, free: 1.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.3179, allocations: 1.25 kB / 0.5209 GB, free: 1.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002527/0.3181, allocations: 109.1 kB / 0.5211 GB, free: 1.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.3182, allocations: 52.62 kB / 0.5211 GB, free: 1.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.933e-05/0.3182, allocations: 100 kB / 0.5212 GB, free: 1.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.3182, allocations: 26.95 kB / 0.5212 GB, free: 1.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.146e-05/0.3183, allocations: 80.14 kB / 0.5213 GB, free: 1.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.882e-05/0.3183, allocations: 33.3 kB / 0.5213 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.3183, allocations: 25.14 kB / 0.5214 GB, free: 1.477 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.768e-05/0.3184, allocations: 313.4 kB / 0.5217 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.548e-05/0.3184, allocations: 16.7 kB / 0.5217 GB, free: 1.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.55e-05/0.3185, allocations: 26.34 kB / 0.5217 GB, free: 1.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.864e-05/0.3186, allocations: 54.78 kB / 0.5217 GB, free: 1.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3186, allocations: 0 / 0.5217 GB, free: 1.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001115/0.3187, allocations: 84.97 kB / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3187, allocations: 5.469 kB / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3187, allocations: 7.938 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3187, allocations: 2.141 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.3188, allocations: 13.94 kB / 0.5219 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.3189, allocations: 1.781 kB / 0.5219 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.583e-05/0.3189, allocations: 5.031 kB / 0.5219 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.3189, allocations: 3.219 kB / 0.5219 GB, free: 1.055 MB / 382.1 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 5.103e-05/0.319, allocations: 124.2 kB / 0.522 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.319, allocations: 1.891 kB / 0.522 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001783/0.3192, allocations: 104.8 kB / 0.5221 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.3192, allocations: 2.188 kB / 0.5221 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3192, allocations: 0 / 0.5221 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3192, allocations: 1.953 kB / 0.5221 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.586e-05/0.3193, allocations: 178.2 kB / 0.5223 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3193, allocations: 0 / 0.5223 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.589e-05/0.3194, allocations: 15.17 kB / 0.5223 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.3194, allocations: 4.516 kB / 0.5223 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.3194, allocations: 9.781 kB / 0.5223 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3194, allocations: 0.9688 kB / 0.5223 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3194, allocations: 0 / 0.5223 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.3195, allocations: 112.2 kB / 0.5224 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.525e-05/0.3195, allocations: 82.08 kB / 0.5225 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.3196, allocations: 9.875 kB / 0.5225 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.318e-05/0.3196, allocations: 0 / 0.5225 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.211e-05/0.3196, allocations: 10.11 kB / 0.5225 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.3196, allocations: 2.625 kB / 0.5225 GB, free: 452 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.465e-05/0.3196, allocations: 76.41 kB / 0.5226 GB, free: 376 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3196, allocations: 1.062 kB / 0.5226 GB, free: 376 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002006/0.3198, allocations: 19.83 kB / 0.5226 GB, free: 368 kB / 382.1 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.000109/0.32, allocations: 105.3 kB / 0.5227 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.3201, allocations: 50.5 kB / 0.5227 GB, free: 264 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3201, allocations: 8.031 kB / 0.5227 GB, free: 256 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.411e-05/0.3202, allocations: 31.45 kB / 0.5228 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.3203, allocations: 6.938 kB / 0.5228 GB, free: 244 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003064/0.3206, allocations: 137.3 kB / 0.5229 GB, free: 120 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.3209, allocations: 0.6845 MB / 0.5236 GB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.675e-05/0.3209, allocations: 9.844 kB / 0.5236 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.356e-05/0.321, allocations: 16.52 kB / 0.5236 GB, free: 15.4 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.321, allocations: 0 / 0.5236 GB, free: 15.4 MB / 398.1 MB Notification: Performance of Templates: time 0.002664/0.3236, allocations: 0.6497 MB / 0.5242 GB, free: 15.31 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches