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.001685/0.001685, allocations: 104 kB / 16.4 MB, free: 6.465 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.001802/0.001802, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.375/1.375, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2107/0.2107, allocations: 43.52 MB / 314.1 MB, free: 452 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.00204/0.00204, allocations: 73.47 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1082, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00153/0.1098, allocations: 0.4949 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1117, allocations: 1.389 MB / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.82e-05/0.1117, allocations: 0 / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.338e-05/0.1118, allocations: 4 kB / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.906e-05/0.1118, allocations: 0 / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006984/0.1125, allocations: 219.9 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.357e-05/0.1126, allocations: 4 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.664e-05/0.1126, allocations: 4 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.841e-05/0.1126, allocations: 4 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.005e-05/0.1127, allocations: 19.91 kB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.1127, allocations: 0 / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004599/0.1132, allocations: 271.6 kB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.1132, allocations: 3.984 kB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.977e-05/0.1132, allocations: 8 kB / 0.4897 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.1135, allocations: 135.7 kB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1135, allocations: 0 / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1135, allocations: 0 / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1135, 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.0003969/0.1139, allocations: 343.3 kB / 0.4902 GB, free: 9.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.114, allocations: 19.88 kB / 0.4902 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.97e-05/0.114, allocations: 30.75 kB / 0.4902 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.16e-05/0.114, allocations: 0.9375 kB / 0.4902 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.1142, allocations: 168.3 kB / 0.4904 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-06/0.1142, allocations: 384 / 0.4904 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.1142, allocations: 12.31 kB / 0.4904 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.1143, allocations: 37.81 kB / 0.4905 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1143, allocations: 0 / 0.4905 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.1143, allocations: 3.938 kB / 0.4905 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1144, allocations: 4 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.318e-05/0.1144, allocations: 8 kB / 0.4905 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003538/0.1148, allocations: 240.9 kB / 0.4907 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.876e-05/0.1148, allocations: 18.58 kB / 0.4907 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.693e-05/0.1148, allocations: 4.859 kB / 0.4907 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.1148, allocations: 3.984 kB / 0.4907 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.1149, allocations: 46.56 kB / 0.4908 GB, free: 8.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1149, allocations: 0 / 0.4908 GB, free: 8.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001451/0.115, allocations: 33.69 kB / 0.4908 GB, free: 8.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.1151, allocations: 51.41 kB / 0.4909 GB, free: 8.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.504e-05/0.1152, allocations: 97.86 kB / 0.4909 GB, free: 8.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.1152, allocations: 25.7 kB / 0.491 GB, free: 8.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.1152, allocations: 84.09 kB / 0.491 GB, free: 8.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.803e-06/0.1153, allocations: 8.203 kB / 0.4911 GB, free: 8.309 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.1153, allocations: 17.7 kB / 0.4911 GB, free: 8.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1154, allocations: 322.8 kB / 0.4914 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.132e-05/0.1155, allocations: 0 / 0.4914 GB, free: 7.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.881e-05/0.1155, allocations: 18.58 kB / 0.4914 GB, free: 7.934 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.285e-05/0.1155, allocations: 38.5 kB / 0.4914 GB, free: 7.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1155, allocations: 0 / 0.4914 GB, free: 7.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.055e-05/0.1156, allocations: 45.64 kB / 0.4915 GB, free: 7.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.1156, allocations: 4 kB / 0.4915 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1157, allocations: 0 / 0.4915 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1157, allocations: 4 kB / 0.4915 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.025e-05/0.1157, allocations: 7.984 kB / 0.4915 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.1157, allocations: 7.875 kB / 0.4915 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.1158, allocations: 4.094 kB / 0.4915 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.1158, allocations: 4 kB / 0.4915 GB, free: 7.805 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 7.513e-05/0.1159, allocations: 113.7 kB / 0.4916 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.1159, allocations: 4 kB / 0.4916 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.116, allocations: 44.81 kB / 0.4917 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.116, allocations: 0 / 0.4917 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.116, allocations: 0 / 0.4917 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.116, allocations: 4.031 kB / 0.4917 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.1162, allocations: 153.6 kB / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1162, allocations: 0 / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.1162, allocations: 0 / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1162, allocations: 0 / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1162, allocations: 7.938 kB / 0.4918 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.1162, allocations: 3.938 kB / 0.4918 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1162, allocations: 0 / 0.4918 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001033/0.1164, allocations: 139.5 kB / 0.492 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.1164, allocations: 85.09 kB / 0.492 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.147e-06/0.1164, allocations: 0 / 0.492 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.306e-05/0.1165, allocations: 0 / 0.492 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.368e-05/0.1165, allocations: 0 / 0.492 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.1165, allocations: 4 kB / 0.492 GB, free: 7.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.742e-05/0.1166, allocations: 75.28 kB / 0.4921 GB, free: 7.078 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1166, allocations: 0 / 0.4921 GB, free: 7.078 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.1169, allocations: 47.92 kB / 0.4922 GB, free: 7.031 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.0005644/0.1174, allocations: 0.7085 MB / 0.4929 GB, free: 6.293 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.787e-05/0.1175, allocations: 12 kB / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1175, allocations: 0 / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.796e-05/0.1176, allocations: 33.86 kB / 0.4929 GB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.1178, allocations: 7.5 kB / 0.4929 GB, free: 6.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003776/0.1182, allocations: 130.4 kB / 0.493 GB, free: 6.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.1185, allocations: 0.6729 MB / 0.4937 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.436e-05/0.1185, allocations: 7.938 kB / 0.4937 GB, free: 5.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.005e-05/0.1185, allocations: 7.438 kB / 0.4937 GB, free: 5.355 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1185, allocations: 0 / 0.4937 GB, free: 5.355 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.1405, allocations: 1.841 MB / 0.4955 GB, free: 3.512 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.898/8.038, allocations: 11.94 kB / 0.4955 GB, free: 3.5 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