Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",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.001542/0.001542, allocations: 110 kB / 16.41 MB, free: 6.445 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.001796/0.001796, allocations: 185.5 kB / 17.34 MB, free: 5.723 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.288/1.288, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2109/0.2109, allocations: 43.53 MB / 314.1 MB, free: 448 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.00147/0.00147, allocations: 69.47 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.1012, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00159/0.1028, allocations: 0.4908 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1045, allocations: 1.401 MB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.183e-05/0.1045, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.439e-05/0.1046, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.128e-05/0.1046, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006691/0.1053, allocations: 223.9 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.414e-05/0.1053, allocations: 7.984 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.667e-05/0.1054, allocations: 3.984 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.891e-05/0.1054, allocations: 12 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.195e-05/0.1054, allocations: 3.938 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.1055, allocations: 4 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004328/0.1059, allocations: 279.6 kB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.1059, allocations: 0 / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.693e-05/0.1059, allocations: 0 / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002148/0.1062, allocations: 143.7 kB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1062, allocations: 0 / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1062, allocations: 0 / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1062, allocations: 0 / 0.4899 GB, free: 9.734 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003463/0.1065, allocations: 343.4 kB / 0.4902 GB, free: 9.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.1066, allocations: 11.89 kB / 0.4902 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.1066, allocations: 30.75 kB / 0.4902 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.518e-05/0.1066, allocations: 4.938 kB / 0.4902 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.85e-05/0.1067, allocations: 160.4 kB / 0.4904 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.996e-06/0.1067, allocations: 384 / 0.4904 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-06/0.1068, allocations: 4.375 kB / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.94e-05/0.1069, allocations: 41.81 kB / 0.4904 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1069, allocations: 0 / 0.4904 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.1069, allocations: 7.875 kB / 0.4905 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1069, allocations: 4 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.068e-05/0.1069, allocations: 11.98 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003045/0.1072, allocations: 236.9 kB / 0.4907 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.528e-05/0.1073, allocations: 14.64 kB / 0.4907 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.517e-05/0.1073, allocations: 8.859 kB / 0.4907 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.491e-06/0.1073, allocations: 0 / 0.4907 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.1074, allocations: 46.48 kB / 0.4908 GB, free: 8.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1074, allocations: 0 / 0.4908 GB, free: 8.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001263/0.1075, allocations: 33.7 kB / 0.4908 GB, free: 8.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/0.1075, allocations: 51.41 kB / 0.4908 GB, free: 8.555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.219e-05/0.1076, allocations: 97.86 kB / 0.4909 GB, free: 8.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.1076, allocations: 25.7 kB / 0.491 GB, free: 8.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.906e-05/0.1077, allocations: 88.28 kB / 0.491 GB, free: 8.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-06/0.1077, allocations: 4 kB / 0.491 GB, free: 8.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.213e-05/0.1077, allocations: 17.62 kB / 0.4911 GB, free: 8.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.349e-05/0.1078, allocations: 318.8 kB / 0.4914 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.254e-05/0.1078, allocations: 4 kB / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.437e-05/0.1079, allocations: 22.56 kB / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.191e-05/0.1079, allocations: 30.52 kB / 0.4914 GB, free: 7.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1079, allocations: 0 / 0.4914 GB, free: 7.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.388e-05/0.108, allocations: 49.62 kB / 0.4915 GB, free: 7.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.108, allocations: 8 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.108, allocations: 0 / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.108, allocations: 0 / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.79e-05/0.1081, allocations: 8 kB / 0.4915 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1081, allocations: 7.875 kB / 0.4915 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.739e-05/0.1081, allocations: 4.094 kB / 0.4915 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.1081, allocations: 4 kB / 0.4915 GB, free: 7.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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 6.712e-05/0.1082, allocations: 117.7 kB / 0.4916 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.1082, allocations: 0 / 0.4916 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1084, allocations: 52.89 kB / 0.4917 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1084, allocations: 0 / 0.4917 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1084, allocations: 8.031 kB / 0.4917 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1084, allocations: 0 / 0.4917 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.1085, allocations: 149.6 kB / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.1085, allocations: 0 / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.874e-06/0.1085, allocations: 4 kB / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1086, allocations: 0 / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.1086, allocations: 0 / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1086, allocations: 3.938 kB / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1086, allocations: 0 / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.226e-05/0.1087, allocations: 143.4 kB / 0.492 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.1087, allocations: 77.11 kB / 0.492 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.618e-06/0.1087, allocations: 0 / 0.492 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.872e-05/0.1088, allocations: 4 kB / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-06/0.1088, allocations: 0 / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.1088, allocations: 0 / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.977e-05/0.1088, allocations: 79.28 kB / 0.4921 GB, free: 7.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1088, allocations: 0 / 0.4921 GB, free: 7.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.1091, allocations: 44.11 kB / 0.4922 GB, free: 7.047 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0004735/0.1096, allocations: 0.7085 MB / 0.4928 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.647e-05/0.1097, allocations: 12 kB / 0.4929 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1097, allocations: 0 / 0.4929 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.73e-05/0.1098, allocations: 41.84 kB / 0.4929 GB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.11, allocations: 3.438 kB / 0.4929 GB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003545/0.1103, allocations: 134.5 kB / 0.493 GB, free: 6.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.1106, allocations: 0.669 MB / 0.4937 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.135e-05/0.1106, allocations: 3.938 kB / 0.4937 GB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.114e-05/0.1106, allocations: 11.44 kB / 0.4937 GB, free: 5.367 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1106, allocations: 0 / 0.4937 GB, free: 5.367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0178/0.1284, allocations: 1.839 MB / 0.4955 GB, free: 3.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.651, allocations: 16 kB / 0.4955 GB, free: 3.504 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches