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.001295/0.001296, allocations: 113.2 kB / 16.41 MB, free: 6.5 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.001205/0.001205, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.396/1.396, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2097/0.2097, allocations: 43.53 MB / 314.1 MB, free: 440 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.002099/0.002099, allocations: 70.03 kB / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1067, allocations: 57.8 MB / 499.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002098/0.1088, allocations: 0.5767 MB / 499.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004018/0.1092, allocations: 124 kB / 499.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.1093, allocations: 0 / 499.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.447e-05/0.1093, allocations: 0 / 499.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/0.1096, allocations: 35.84 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.508e-06/0.1096, allocations: 3.938 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.554e-05/0.1097, allocations: 19.97 kB / 499.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.831e-05/0.1098, allocations: 0 / 499.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.777e-05/0.1098, allocations: 19.86 kB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.774e-05/0.1099, allocations: 11.92 kB / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.1099, allocations: 8 kB / 499.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.11, allocations: 47.95 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.031e-05/0.11, allocations: 3.938 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.824e-05/0.11, allocations: 7.938 kB / 500 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.1102, allocations: 47.81 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1102, allocations: 0 / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1102, allocations: 7.875 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.87e-06/0.1102, allocations: 0 / 0.4883 GB, free: 11.34 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.0003749/0.1106, allocations: 347.3 kB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1106, allocations: 19.89 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.595e-05/0.1107, allocations: 30.75 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/0.1107, allocations: 0.9375 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.1109, allocations: 172.3 kB / 0.4889 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.1109, allocations: 384 / 0.4889 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.1109, allocations: 4.375 kB / 0.4889 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001346/0.111, allocations: 62.17 kB / 0.4889 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1111, allocations: 3.938 kB / 0.4889 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.1111, allocations: 7.938 kB / 0.4889 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1111, allocations: 0 / 0.4889 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.1112, allocations: 55.95 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002041/0.1114, allocations: 175.9 kB / 0.4892 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001522/0.1116, allocations: 82.58 kB / 0.4892 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.327e-05/0.1116, allocations: 32.84 kB / 0.4893 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003905/0.112, allocations: 251.3 kB / 0.4895 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.1121, allocations: 38.56 kB / 0.4895 GB, free: 9.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.1121, allocations: 0 / 0.4895 GB, free: 9.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002543/0.1123, allocations: 101.8 kB / 0.4896 GB, free: 9.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.1124, allocations: 59.39 kB / 0.4897 GB, free: 9.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.337e-05/0.1125, allocations: 93.86 kB / 0.4898 GB, free: 9.582 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.1125, allocations: 25.7 kB / 0.4898 GB, free: 9.551 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.818e-05/0.1126, allocations: 84.47 kB / 0.4899 GB, free: 9.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.1126, allocations: 31.73 kB / 0.4899 GB, free: 9.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.1127, allocations: 25.84 kB / 0.49 GB, free: 9.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1128, allocations: 314.8 kB / 0.4903 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.082e-05/0.1129, allocations: 19.92 kB / 0.4903 GB, free: 9.066 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.622e-05/0.1129, allocations: 27.92 kB / 0.4903 GB, free: 9.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.189e-05/0.113, allocations: 44.86 kB / 0.4903 GB, free: 8.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.113, allocations: 0 / 0.4903 GB, free: 8.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001402/0.1132, allocations: 89.58 kB / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1132, allocations: 7.938 kB / 0.4904 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1132, allocations: 0 / 0.4904 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.1132, allocations: 4 kB / 0.4904 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1133, allocations: 19.98 kB / 0.4905 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1133, allocations: 0 / 0.4905 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.436e-05/0.1134, allocations: 0 / 0.4905 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.1134, allocations: 8 kB / 0.4905 GB, free: 8.859 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.831e-05/0.1135, allocations: 113.7 kB / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.1135, allocations: 11.89 kB / 0.4906 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002099/0.1137, allocations: 101.6 kB / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.1138, allocations: 8.375 kB / 0.4907 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1138, allocations: 3.938 kB / 0.4907 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1138, allocations: 0 / 0.4907 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/0.114, allocations: 173.6 kB / 0.4909 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.114, allocations: 11.88 kB / 0.4909 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.147e-05/0.114, allocations: 15.98 kB / 0.4909 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1141, allocations: 3.938 kB / 0.4909 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.1141, allocations: 4 kB / 0.4909 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1141, allocations: 0 / 0.4909 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1141, allocations: 4 kB / 0.4909 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.1143, allocations: 113 kB / 0.491 GB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.462e-05/0.1143, allocations: 81.11 kB / 0.4911 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.1143, allocations: 7.938 kB / 0.4911 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.271e-05/0.1144, allocations: 0 / 0.4911 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.32e-05/0.1144, allocations: 7.984 kB / 0.4911 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.1144, allocations: 4 kB / 0.4911 GB, free: 8.098 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.658e-05/0.1145, allocations: 75.28 kB / 0.4912 GB, free: 8.023 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1145, allocations: 96 / 0.4912 GB, free: 8.023 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002045/0.1147, allocations: 23.94 kB / 0.4912 GB, free: 8 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.0005121/0.1152, allocations: 0.6514 MB / 0.4918 GB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001455/0.1154, allocations: 55.91 kB / 0.4919 GB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1154, allocations: 0 / 0.4919 GB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.942e-05/0.1154, allocations: 36.31 kB / 0.4919 GB, free: 7.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000145/0.1156, allocations: 10.69 kB / 0.4919 GB, free: 7.223 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.116, allocations: 178.3 kB / 0.4921 GB, free: 7.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.1164, allocations: 0.6807 MB / 0.4928 GB, free: 6.301 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.632e-05/0.1164, allocations: 4 kB / 0.4928 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.1165, allocations: 15.44 kB / 0.4928 GB, free: 6.281 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1165, allocations: 0 / 0.4928 GB, free: 6.281 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02126/0.1377, allocations: 1.555 MB / 0.4943 GB, free: 4.723 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.595/7.733, allocations: 11.98 kB / 0.4943 GB, free: 4.711 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) Reference file matches