Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_3_2_3_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.001302/0.001302, allocations: 109.5 kB / 16.46 MB, free: 6.398 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.001569/0.001569, allocations: 189.4 kB / 17.39 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 207.6 MB / 225.8 MB, free: 11.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2264/0.2264, allocations: 44.25 MB / 319.9 MB, free: 12.84 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 77.3 kB / 453.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1401, allocations: 61 MB / 0.5025 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001705/0.1418, allocations: 0.5726 MB / 0.503 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003538/0.1422, allocations: 125.6 kB / 0.5032 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.71e-05/0.1422, allocations: 0 / 0.5032 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.811e-05/0.1422, allocations: 0 / 0.5032 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000254/0.1425, allocations: 39.83 kB / 0.5032 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.298e-06/0.1425, allocations: 4 kB / 0.5032 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.566e-05/0.1426, allocations: 23.86 kB / 0.5032 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.297e-05/0.1426, allocations: 3.984 kB / 0.5032 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.566e-05/0.1427, allocations: 11.88 kB / 0.5032 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.309e-05/0.1427, allocations: 15.92 kB / 0.5033 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.1427, allocations: 4 kB / 0.5033 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.1429, allocations: 51.94 kB / 0.5033 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.175e-06/0.1429, allocations: 4 kB / 0.5033 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.767e-05/0.1429, allocations: 3.938 kB / 0.5033 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.143, allocations: 52.09 kB / 0.5034 GB, free: 11.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.143, allocations: 0 / 0.5034 GB, free: 11.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.143, allocations: 0 / 0.5034 GB, free: 11.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.143, allocations: 0 / 0.5034 GB, free: 11.11 MB / 398.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.0003909/0.1434, allocations: 347.2 kB / 0.5037 GB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.1435, allocations: 15.83 kB / 0.5037 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.04e-05/0.1435, allocations: 46.73 kB / 0.5038 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.1435, allocations: 0.9375 kB / 0.5038 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.1437, allocations: 172.3 kB / 0.5039 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.1437, allocations: 384 / 0.5039 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1437, allocations: 8.375 kB / 0.5039 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.1438, allocations: 58.17 kB / 0.504 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1438, allocations: 3.938 kB / 0.504 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.1439, allocations: 4 kB / 0.504 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1439, allocations: 0 / 0.504 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.144, allocations: 51.95 kB / 0.504 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001977/0.1442, allocations: 173.7 kB / 0.5042 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.1443, allocations: 74.58 kB / 0.5043 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.34e-05/0.1444, allocations: 32.84 kB / 0.5043 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003902/0.1447, allocations: 251.3 kB / 0.5045 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.1448, allocations: 42.55 kB / 0.5046 GB, free: 9.621 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.1448, allocations: 0 / 0.5046 GB, free: 9.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002348/0.145, allocations: 101.8 kB / 0.5047 GB, free: 9.516 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.1451, allocations: 51.41 kB / 0.5047 GB, free: 9.453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.243e-05/0.1451, allocations: 97.84 kB / 0.5048 GB, free: 9.348 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1452, allocations: 29.7 kB / 0.5049 GB, free: 9.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.812e-05/0.1452, allocations: 84.09 kB / 0.5049 GB, free: 9.227 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.1452, allocations: 27.75 kB / 0.505 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.1453, allocations: 29.83 kB / 0.505 GB, free: 9.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1454, allocations: 315.2 kB / 0.5053 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.678e-05/0.1455, allocations: 15.98 kB / 0.5053 GB, free: 8.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.16e-05/0.1455, allocations: 19.94 kB / 0.5053 GB, free: 8.812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.511e-05/0.1456, allocations: 52.78 kB / 0.5054 GB, free: 8.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1456, allocations: 0 / 0.5054 GB, free: 8.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001405/0.1457, allocations: 89.58 kB / 0.5055 GB, free: 8.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1457, allocations: 7.938 kB / 0.5055 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.1457, allocations: 0 / 0.5055 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.1458, allocations: 3.984 kB / 0.5055 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.1459, allocations: 23.98 kB / 0.5055 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.1459, allocations: 3.938 kB / 0.5055 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.664e-05/0.1459, allocations: 4 kB / 0.5055 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.1459, allocations: 4 kB / 0.5055 GB, free: 8.617 MB / 398.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 8.496e-05/0.146, allocations: 113.8 kB / 0.5056 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.146, allocations: 11.89 kB / 0.5056 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.1462, allocations: 101.5 kB / 0.5057 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1462, allocations: 8 kB / 0.5057 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1462, allocations: 0 / 0.5057 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1462, allocations: 0 / 0.5057 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.1464, allocations: 178 kB / 0.5059 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1464, allocations: 0 / 0.5059 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.276e-05/0.1465, allocations: 15.98 kB / 0.5059 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1465, allocations: 3.938 kB / 0.5059 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.1465, allocations: 3.938 kB / 0.5059 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1465, allocations: 4 kB / 0.5059 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1465, allocations: 3.984 kB / 0.5059 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.1467, allocations: 121 kB / 0.506 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.1467, allocations: 77.11 kB / 0.5061 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.1467, allocations: 7.938 kB / 0.5061 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.297e-05/0.1467, allocations: 0 / 0.5061 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.971e-05/0.1468, allocations: 11.98 kB / 0.5061 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-06/0.1468, allocations: 4 kB / 0.5061 GB, free: 7.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.179e-05/0.1468, allocations: 75.28 kB / 0.5062 GB, free: 7.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1468, allocations: 0 / 0.5062 GB, free: 7.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002286/0.147, allocations: 24.03 kB / 0.5062 GB, free: 7.758 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.0005289/0.1476, allocations: 0.6514 MB / 0.5069 GB, free: 7.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001539/0.1477, allocations: 51.91 kB / 0.5069 GB, free: 7.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1477, allocations: 0 / 0.5069 GB, free: 7.027 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.367e-05/0.1478, allocations: 28.31 kB / 0.507 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.1479, allocations: 10.66 kB / 0.507 GB, free: 6.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005206/0.1484, allocations: 182.5 kB / 0.5071 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.1488, allocations: 0.6807 MB / 0.5078 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.25e-05/0.1489, allocations: 4 kB / 0.5078 GB, free: 6.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.878e-05/0.1489, allocations: 15.44 kB / 0.5078 GB, free: 6.047 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1489, allocations: 0 / 0.5078 GB, free: 6.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0229/0.1718, allocations: 1.561 MB / 0.5093 GB, free: 4.488 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/7.799, allocations: 7.984 kB / 0.5094 GB, free: 4.48 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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