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.001635/0.001635, allocations: 113.4 kB / 17.78 MB, free: 5.27 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.001803/0.001803, allocations: 180.1 kB / 18.71 MB, free: 4.348 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.434/1.434, 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.1985/0.1985, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3498, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001567/0.3514, allocations: 0.5437 MB / 0.5194 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003854/0.3518, allocations: 157.8 kB / 0.5196 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.922e-05/0.3518, allocations: 0.8125 kB / 0.5196 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.3518, allocations: 0 / 0.5196 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.3521, allocations: 35.41 kB / 0.5196 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.048e-06/0.3521, allocations: 0 / 0.5196 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.948e-05/0.3522, allocations: 28.78 kB / 0.5196 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.939e-05/0.3522, allocations: 6.844 kB / 0.5196 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.813e-05/0.3523, allocations: 8.516 kB / 0.5196 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.963e-05/0.3523, allocations: 19.86 kB / 0.5197 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.3523, allocations: 2.344 kB / 0.5197 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.3525, allocations: 56.91 kB / 0.5197 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.181e-05/0.3525, allocations: 5.344 kB / 0.5197 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.316e-05/0.3525, allocations: 12.45 kB / 0.5197 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.3526, allocations: 42 kB / 0.5198 GB, free: 3.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3526, allocations: 0 / 0.5198 GB, free: 3.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3526, allocations: 0 / 0.5198 GB, free: 3.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.3527, allocations: 0 / 0.5198 GB, free: 3.082 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.0002368/0.3529, allocations: 336.9 kB / 0.5201 GB, free: 2.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3529, allocations: 12.69 kB / 0.5201 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.353, allocations: 7.891 kB / 0.5201 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.651e-05/0.353, allocations: 173.8 kB / 0.5203 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.3531, allocations: 2.438 kB / 0.5203 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.3531, allocations: 3.359 kB / 0.5203 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.3532, allocations: 59.7 kB / 0.5203 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3532, allocations: 192 / 0.5203 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.3532, allocations: 5.188 kB / 0.5203 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.3533, allocations: 1.688 kB / 0.5203 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.3534, allocations: 57.16 kB / 0.5204 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.3535, allocations: 168.9 kB / 0.5206 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.3537, allocations: 78.84 kB / 0.5206 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.218e-05/0.3538, allocations: 29.89 kB / 0.5207 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002855/0.3541, allocations: 251.6 kB / 0.5209 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.3541, allocations: 37.28 kB / 0.5209 GB, free: 1.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.3541, allocations: 0 / 0.5209 GB, free: 1.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002306/0.3543, allocations: 116.9 kB / 0.5211 GB, free: 1.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.3544, allocations: 53.59 kB / 0.5211 GB, free: 1.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.314e-05/0.3544, allocations: 91.72 kB / 0.5212 GB, free: 1.633 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.687e-06/0.3544, allocations: 26.83 kB / 0.5212 GB, free: 1.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.363e-05/0.3544, allocations: 84.08 kB / 0.5213 GB, free: 1.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.3545, allocations: 32.72 kB / 0.5213 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.3545, allocations: 26.86 kB / 0.5214 GB, free: 1.469 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.859e-05/0.3546, allocations: 317.5 kB / 0.5217 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.469e-05/0.3546, allocations: 19.41 kB / 0.5217 GB, free: 1.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.385e-05/0.3547, allocations: 18.2 kB / 0.5217 GB, free: 1.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.764e-05/0.3547, allocations: 50.8 kB / 0.5217 GB, free: 1.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3547, allocations: 0 / 0.5217 GB, free: 1.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001136/0.3549, allocations: 83.7 kB / 0.5218 GB, free: 1.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3549, allocations: 9.312 kB / 0.5218 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3549, allocations: 3.938 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3549, allocations: 1.953 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.355, allocations: 14.61 kB / 0.5218 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.355, allocations: 5.125 kB / 0.5219 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.427e-05/0.3551, allocations: 8.906 kB / 0.5219 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.3551, allocations: 2.891 kB / 0.5219 GB, free: 1.047 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.664e-05/0.3551, allocations: 116.6 kB / 0.522 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.146e-05/0.3551, allocations: 2.188 kB / 0.522 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001798/0.3553, allocations: 105 kB / 0.5221 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3553, allocations: 1.375 kB / 0.5221 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3554, allocations: 1.438 kB / 0.5221 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3554, allocations: 8.562 kB / 0.5221 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.266e-05/0.3555, allocations: 177.8 kB / 0.5223 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3555, allocations: 1.375 kB / 0.5223 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.648e-05/0.3555, allocations: 18.2 kB / 0.5223 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.3555, allocations: 1.031 kB / 0.5223 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.3556, allocations: 9.859 kB / 0.5223 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3556, allocations: 1.156 kB / 0.5223 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3556, allocations: 0.7031 kB / 0.5223 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.3557, allocations: 110 kB / 0.5224 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.175e-05/0.3557, allocations: 86.92 kB / 0.5225 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.3558, allocations: 9.891 kB / 0.5225 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.137e-05/0.3558, allocations: 1.188 kB / 0.5225 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.212e-05/0.3558, allocations: 5.469 kB / 0.5225 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.3558, allocations: 2.203 kB / 0.5225 GB, free: 444 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.857e-05/0.3558, allocations: 80.44 kB / 0.5226 GB, free: 364 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3559, allocations: 1.25 kB / 0.5226 GB, free: 364 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002014/0.3561, allocations: 16.22 kB / 0.5226 GB, free: 360 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.000123/0.3562, allocations: 109.2 kB / 0.5227 GB, free: 264 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001455/0.3563, allocations: 55.05 kB / 0.5227 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3563, allocations: 0 / 0.5227 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.573e-05/0.3564, allocations: 30.58 kB / 0.5228 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.3565, allocations: 7.125 kB / 0.5228 GB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003006/0.3568, allocations: 133.7 kB / 0.5229 GB, free: 116 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.3571, allocations: 0.6895 MB / 0.5236 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.865e-05/0.3572, allocations: 8.641 kB / 0.5236 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.372e-05/0.3572, allocations: 11.78 kB / 0.5236 GB, free: 15.4 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3572, allocations: 0 / 0.5236 GB, free: 15.4 MB / 398.1 MB Notification: Performance of Templates: time 0.00268/0.3599, allocations: 0.6602 MB / 0.5242 GB, free: 15.3 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