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.001052/0.001052, allocations: 106.9 kB / 16.41 MB, free: 6.48 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.0009911/0.0009913, allocations: 189.5 kB / 17.34 MB, free: 5.754 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.263/1.263, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.1921/0.1921, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 254.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.001514/0.001514, allocations: 67.91 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1094, allocations: 57.81 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.00169/0.1112, allocations: 0.5613 MB / 499.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000339/0.1115, allocations: 124.1 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.971e-05/0.1116, allocations: 0 / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.704e-05/0.1116, allocations: 3.938 kB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.1119, allocations: 39.83 kB / 499.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.617e-06/0.1119, allocations: 0 / 499.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.778e-05/0.112, allocations: 27.91 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.605e-05/0.112, allocations: 3.938 kB / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.786e-05/0.112, allocations: 4 kB / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.61e-05/0.1121, allocations: 15.92 kB / 499.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.047e-05/0.1121, allocations: 0 / 499.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.1122, allocations: 51.94 kB / 500 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.076e-05/0.1122, allocations: 15.88 kB / 500 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.875e-05/0.1123, allocations: 7.922 kB / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001042/0.1124, allocations: 43.89 kB / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1124, allocations: 0 / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1124, allocations: 0 / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1124, allocations: 0 / 0.4883 GB, free: 11.39 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.0003008/0.1127, allocations: 339.5 kB / 0.4886 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1128, allocations: 11.89 kB / 0.4886 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.394e-05/0.1128, allocations: 46.73 kB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.356e-05/0.1128, allocations: 4.938 kB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.113, allocations: 172.2 kB / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.113, allocations: 384 / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.113, allocations: 12.31 kB / 0.4889 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.1131, allocations: 54.23 kB / 0.4889 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1131, allocations: 7.875 kB / 0.4889 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1131, allocations: 7.984 kB / 0.4889 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1132, allocations: 0 / 0.4889 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.228e-05/0.1133, allocations: 55.89 kB / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.1134, allocations: 179.9 kB / 0.4892 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001356/0.1136, allocations: 78.55 kB / 0.4892 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.333e-05/0.1136, allocations: 32.84 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003093/0.114, allocations: 247.3 kB / 0.4895 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.114, allocations: 38.55 kB / 0.4895 GB, free: 9.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.835e-06/0.114, allocations: 8.281 kB / 0.4895 GB, free: 9.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002225/0.1142, allocations: 101.6 kB / 0.4896 GB, free: 9.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.1143, allocations: 55.34 kB / 0.4897 GB, free: 9.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.538e-05/0.1143, allocations: 93.84 kB / 0.4898 GB, free: 9.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1144, allocations: 33.7 kB / 0.4898 GB, free: 9.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.601e-05/0.1144, allocations: 80.14 kB / 0.4899 GB, free: 9.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.252e-05/0.1145, allocations: 31.47 kB / 0.4899 GB, free: 9.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.1145, allocations: 21.7 kB / 0.4899 GB, free: 9.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1146, allocations: 323 kB / 0.4902 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.387e-05/0.1147, allocations: 15.98 kB / 0.4903 GB, free: 9.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.776e-05/0.1147, allocations: 16.38 kB / 0.4903 GB, free: 9.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.092e-05/0.1148, allocations: 52.97 kB / 0.4903 GB, free: 9.035 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1148, allocations: 3.938 kB / 0.4903 GB, free: 9.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001198/0.1149, allocations: 77.69 kB / 0.4904 GB, free: 8.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.1149, allocations: 11.94 kB / 0.4904 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1149, allocations: 0 / 0.4904 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.115, allocations: 0 / 0.4904 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.1151, allocations: 23.92 kB / 0.4904 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.1151, allocations: 8 kB / 0.4905 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.813e-05/0.1151, allocations: 3.906 kB / 0.4905 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.1151, allocations: 0 / 0.4905 GB, free: 8.902 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 8.625e-05/0.1152, allocations: 117.8 kB / 0.4906 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.344e-05/0.1152, allocations: 7.938 kB / 0.4906 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001827/0.1154, allocations: 101.6 kB / 0.4907 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1154, allocations: 0 / 0.4907 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1155, allocations: 0 / 0.4907 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1155, allocations: 12 kB / 0.4907 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/0.1156, allocations: 177.4 kB / 0.4909 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1156, allocations: 0 / 0.4909 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.111e-05/0.1157, allocations: 19.98 kB / 0.4909 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.381e-05/0.1157, allocations: 3.938 kB / 0.4909 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.1157, allocations: 0 / 0.4909 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.1157, allocations: 0 / 0.4909 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1157, allocations: 3.938 kB / 0.4909 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001391/0.1159, allocations: 117.2 kB / 0.491 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.1159, allocations: 81.11 kB / 0.4911 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.1159, allocations: 3.938 kB / 0.4911 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.586e-05/0.116, allocations: 0 / 0.4911 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.056e-05/0.116, allocations: 15.92 kB / 0.4911 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.116, allocations: 0 / 0.4911 GB, free: 8.145 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.369e-05/0.1161, allocations: 79.28 kB / 0.4912 GB, free: 8.066 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1161, allocations: 0 / 0.4912 GB, free: 8.066 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000208/0.1163, allocations: 16 kB / 0.4912 GB, free: 8.051 MB / 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.0004421/0.1167, allocations: 0.6553 MB / 0.4918 GB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001354/0.1169, allocations: 55.92 kB / 0.4919 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1169, allocations: 0 / 0.4919 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.224e-05/0.1169, allocations: 31.92 kB / 0.4919 GB, free: 7.281 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.1171, allocations: 7.438 kB / 0.4919 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004551/0.1175, allocations: 187.1 kB / 0.4921 GB, free: 7.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.1178, allocations: 0.6807 MB / 0.4928 GB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.362e-05/0.1178, allocations: 4 kB / 0.4928 GB, free: 6.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.1179, allocations: 15.44 kB / 0.4928 GB, free: 6.328 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1179, allocations: 0 / 0.4928 GB, free: 6.328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.1343, allocations: 1.575 MB / 0.4943 GB, free: 4.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.15/7.285, allocations: 3.984 kB / 0.4943 GB, free: 4.75 MB / 382.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