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.001543/0.001543, allocations: 104.3 kB / 16.4 MB, free: 6.473 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.001737/0.001737, 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.403/1.403, 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.237/0.237, allocations: 43.53 MB / 314.1 MB, free: 468 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.002238/0.002238, allocations: 75.89 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1296, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.00193/0.1316, allocations: 0.5652 MB / 499.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003708/0.132, allocations: 128.1 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.639e-05/0.132, allocations: 0 / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.1321, allocations: 0 / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.1324, allocations: 39.83 kB / 499.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.252e-06/0.1324, allocations: 4 kB / 499.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.357e-05/0.1324, allocations: 15.92 kB / 499.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.646e-05/0.1325, allocations: 3.938 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.685e-05/0.1325, allocations: 15.92 kB / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.219e-05/0.1326, allocations: 11.92 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.1326, allocations: 8 kB / 499.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.1328, allocations: 47.95 kB / 500 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.268e-05/0.1328, allocations: 11.92 kB / 500 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.848e-05/0.1328, allocations: 7.922 kB / 500 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.1329, allocations: 43.88 kB / 0.4883 GB, free: 11.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1329, allocations: 4 kB / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.133, allocations: 0 / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.133, allocations: 3.938 kB / 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.0003405/0.1333, allocations: 346.9 kB / 0.4886 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.1334, allocations: 15.89 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.03e-05/0.1334, allocations: 38.75 kB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.104e-05/0.1335, allocations: 4.938 kB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.1336, allocations: 168.3 kB / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.1336, allocations: 4.359 kB / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.1336, allocations: 4.375 kB / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.1338, allocations: 66.12 kB / 0.4889 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1338, allocations: 3.938 kB / 0.4889 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.1338, allocations: 0 / 0.4889 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.1338, allocations: 0 / 0.4889 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001062/0.1339, allocations: 51.95 kB / 0.489 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002215/0.1341, allocations: 179.9 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.1343, allocations: 74.84 kB / 0.4892 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.35e-05/0.1344, allocations: 36.78 kB / 0.4893 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003724/0.1347, allocations: 251.3 kB / 0.4895 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.1348, allocations: 38.56 kB / 0.4895 GB, free: 9.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.1348, allocations: 0 / 0.4895 GB, free: 9.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000271/0.1351, allocations: 109.5 kB / 0.4896 GB, free: 9.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.1351, allocations: 51.41 kB / 0.4897 GB, free: 9.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/0.1352, allocations: 89.86 kB / 0.4898 GB, free: 9.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.1352, allocations: 29.7 kB / 0.4898 GB, free: 9.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.546e-05/0.1353, allocations: 80.14 kB / 0.4899 GB, free: 9.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.644e-05/0.1353, allocations: 39.83 kB / 0.4899 GB, free: 9.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.1353, allocations: 21.84 kB / 0.4899 GB, free: 9.453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1355, allocations: 318.8 kB / 0.4902 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.611e-05/0.1355, allocations: 16 kB / 0.4903 GB, free: 9.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.932e-05/0.1356, allocations: 23.92 kB / 0.4903 GB, free: 9.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.887e-05/0.1356, allocations: 48.8 kB / 0.4903 GB, free: 9.043 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1356, allocations: 0 / 0.4903 GB, free: 9.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001237/0.1358, allocations: 89.61 kB / 0.4904 GB, free: 8.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.1358, allocations: 7.938 kB / 0.4904 GB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1358, allocations: 3.984 kB / 0.4904 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1358, allocations: 4 kB / 0.4904 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1359, allocations: 12 kB / 0.4904 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.136, allocations: 4 kB / 0.4904 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.892e-05/0.136, allocations: 7.906 kB / 0.4905 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.136, allocations: 4 kB / 0.4905 GB, free: 8.906 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 9.127e-05/0.1361, allocations: 117.8 kB / 0.4906 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.537e-05/0.1361, allocations: 7.938 kB / 0.4906 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/0.1363, allocations: 93.58 kB / 0.4907 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1363, allocations: 4 kB / 0.4907 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.1363, allocations: 4.375 kB / 0.4907 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1364, allocations: 3.938 kB / 0.4907 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.1365, allocations: 181.5 kB / 0.4908 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1365, allocations: 7.938 kB / 0.4909 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.287e-05/0.1366, allocations: 19.94 kB / 0.4909 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.286e-05/0.1366, allocations: 3.938 kB / 0.4909 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.1366, allocations: 0 / 0.4909 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1366, allocations: 0 / 0.4909 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1366, allocations: 4 kB / 0.4909 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.1368, allocations: 109 kB / 0.491 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.1368, allocations: 81.11 kB / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.1368, allocations: 7.938 kB / 0.4911 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.256e-05/0.1369, allocations: 0 / 0.4911 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.67e-05/0.1369, allocations: 7.984 kB / 0.4911 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.1369, allocations: 4 kB / 0.4911 GB, free: 8.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.017e-05/0.1369, allocations: 79.28 kB / 0.4912 GB, free: 8.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1369, allocations: 96 / 0.4912 GB, free: 8.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001988/0.1371, allocations: 16 kB / 0.4912 GB, free: 8.059 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.0004476/0.1376, allocations: 0.6552 MB / 0.4918 GB, free: 7.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.1378, allocations: 55.91 kB / 0.4919 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1378, allocations: 0 / 0.4919 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.575e-05/0.1378, allocations: 36.3 kB / 0.4919 GB, free: 7.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001522/0.138, allocations: 12.19 kB / 0.4919 GB, free: 7.273 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004588/0.1384, allocations: 178.5 kB / 0.4921 GB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.1387, allocations: 0.6807 MB / 0.4927 GB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.29e-05/0.1388, allocations: 4 kB / 0.4928 GB, free: 6.348 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.1388, allocations: 15.42 kB / 0.4928 GB, free: 6.332 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1388, allocations: 0 / 0.4928 GB, free: 6.332 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.1577, allocations: 1.571 MB / 0.4943 GB, free: 4.758 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/7.835, allocations: 11.92 kB / 0.4943 GB, free: 4.746 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