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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001671/0.001671, allocations: 187.9 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.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2289/0.2289, allocations: 44.18 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 55.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4043, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001508/0.4059, allocations: 0.5361 MB / 0.5189 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003666/0.4063, allocations: 152.8 kB / 0.5191 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.72e-05/0.4063, allocations: 0 / 0.5191 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.437e-05/0.4064, allocations: 5.438 kB / 0.5191 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002329/0.4066, allocations: 33.64 kB / 0.5191 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.907e-06/0.4066, allocations: 0 / 0.5191 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.195e-05/0.4067, allocations: 27.09 kB / 0.5191 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.15e-05/0.4067, allocations: 9.266 kB / 0.5191 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.982e-05/0.4068, allocations: 14.23 kB / 0.5192 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.222e-05/0.4068, allocations: 15.67 kB / 0.5192 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.4068, allocations: 5.406 kB / 0.5192 GB, free: 2.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.407, allocations: 46.73 kB / 0.5192 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.987e-06/0.407, allocations: 2.562 kB / 0.5192 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.742e-05/0.407, allocations: 11.5 kB / 0.5192 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001074/0.4071, allocations: 42.03 kB / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.4071, allocations: 1.188 kB / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4071, allocations: 0 / 0.5193 GB, free: 2.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.4071, allocations: 0 / 0.5193 GB, free: 2.77 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.0002436/0.4074, allocations: 341.8 kB / 0.5196 GB, free: 2.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.4074, allocations: 14.78 kB / 0.5196 GB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.63e-05/0.4075, allocations: 36.5 kB / 0.5197 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.678e-05/0.4075, allocations: 7.812 kB / 0.5197 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.439e-05/0.4076, allocations: 170.9 kB / 0.5198 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.4076, allocations: 1.594 kB / 0.5198 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.4076, allocations: 3.875 kB / 0.5198 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.4077, allocations: 59.45 kB / 0.5199 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.4078, allocations: 3.938 kB / 0.5199 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.4078, allocations: 4.609 kB / 0.5199 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.4078, allocations: 1.188 kB / 0.5199 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.4079, allocations: 57.86 kB / 0.52 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.408, allocations: 177.2 kB / 0.5201 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.4082, allocations: 82.23 kB / 0.5202 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.836e-05/0.4082, allocations: 30.25 kB / 0.5202 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002684/0.4085, allocations: 252.1 kB / 0.5205 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.4085, allocations: 40.03 kB / 0.5205 GB, free: 1.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.4085, allocations: 1.156 kB / 0.5205 GB, free: 1.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002174/0.4088, allocations: 107.8 kB / 0.5206 GB, free: 1.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.978e-05/0.4088, allocations: 53.53 kB / 0.5207 GB, free: 1.359 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.163e-05/0.4088, allocations: 96.23 kB / 0.5208 GB, free: 1.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.315e-06/0.4088, allocations: 26.61 kB / 0.5208 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.129e-05/0.4089, allocations: 80.14 kB / 0.5209 GB, free: 1.145 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.4089, allocations: 30.61 kB / 0.5209 GB, free: 1.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.4089, allocations: 30.73 kB / 0.5209 GB, free: 1.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.037e-05/0.409, allocations: 313.3 kB / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.61e-05/0.409, allocations: 16.25 kB / 0.5212 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.224e-05/0.4091, allocations: 22.09 kB / 0.5212 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.564e-05/0.4091, allocations: 55.72 kB / 0.5213 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4092, allocations: 0 / 0.5213 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001149/0.4093, allocations: 84.09 kB / 0.5214 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.4093, allocations: 8.656 kB / 0.5214 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.4093, allocations: 2 kB / 0.5214 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.4093, allocations: 4 kB / 0.5214 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.4094, allocations: 19.03 kB / 0.5214 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.4094, allocations: 1.188 kB / 0.5214 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.549e-05/0.4095, allocations: 5.609 kB / 0.5214 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.4095, allocations: 6.297 kB / 0.5214 GB, free: 0.668 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.016e-05/0.4095, allocations: 112.7 kB / 0.5215 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.4096, allocations: 6.828 kB / 0.5215 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001799/0.4097, allocations: 104.2 kB / 0.5216 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4098, allocations: 2.281 kB / 0.5216 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.4098, allocations: 4 kB / 0.5216 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4098, allocations: 1.312 kB / 0.5216 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.134e-05/0.4099, allocations: 177.6 kB / 0.5218 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4099, allocations: 1.031 kB / 0.5218 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.676e-05/0.4099, allocations: 19.5 kB / 0.5218 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4099, allocations: 4.594 kB / 0.5218 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.41, allocations: 5.188 kB / 0.5218 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.41, allocations: 1.828 kB / 0.5218 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.41, allocations: 0 / 0.5218 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.4101, allocations: 114.4 kB / 0.522 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.468e-05/0.4101, allocations: 83.92 kB / 0.522 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.4101, allocations: 9.719 kB / 0.522 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.311e-05/0.4102, allocations: 0 / 0.522 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.103e-05/0.4102, allocations: 5.141 kB / 0.5221 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.4102, allocations: 3.922 kB / 0.5221 GB, free: 60 kB / 382.1 MB Notification: Performance of sorting global known variables: time 4.156e-05/0.4102, allocations: 75.28 kB / 0.5221 GB, free: 15.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4103, allocations: 5.062 kB / 0.5221 GB, free: 15.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002048/0.4105, allocations: 16.83 kB / 0.5221 GB, free: 15.98 MB / 398.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.0004486/0.4109, allocations: 0.6464 MB / 0.5228 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001392/0.4111, allocations: 56.47 kB / 0.5228 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4111, allocations: 0 / 0.5228 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.768e-05/0.4111, allocations: 39.3 kB / 0.5229 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.4113, allocations: 5.375 kB / 0.5229 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004444/0.4117, allocations: 174.2 kB / 0.523 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.412, allocations: 0.684 MB / 0.5237 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.657e-05/0.412, allocations: 5.859 kB / 0.5237 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/0.4121, allocations: 16.38 kB / 0.5237 GB, free: 14.45 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4121, allocations: 5 kB / 0.5237 GB, free: 14.45 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01905/0.4312, allocations: 1.566 MB / 0.5253 GB, free: 14.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.492/7.923, allocations: 18.11 kB / 0.5253 GB, free: 14.05 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,x,sqrtx,sqrtx_a,x2,x2_a,x3,x3_a,sqrtxerr,x2err,x3err Variables in the result:delta,sqrtx,sqrtx_a,sqrtxerr,time,x,x2,x2_a,x2err,x3,x3_a,x3err