Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_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.001256/0.001256, allocations: 113.8 kB / 17.78 MB, free: 5.266 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.001265/0.001265, allocations: 183.1 kB / 18.71 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2098/0.2098, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 64.12 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3305, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001503/0.332, allocations: 0.4933 MB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.3336, allocations: 1.352 MB / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.719e-05/0.3336, allocations: 0 / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.3336, allocations: 0 / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.743e-05/0.3337, allocations: 1.5 kB / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000699/0.3344, allocations: 222.4 kB / 0.5204 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.908e-05/0.3344, allocations: 10.66 kB / 0.5204 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.234e-05/0.3345, allocations: 2.328 kB / 0.5204 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.953e-05/0.3345, allocations: 9.297 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.122e-05/0.3346, allocations: 4.344 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.3346, allocations: 0 / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005047/0.3351, allocations: 274.2 kB / 0.5207 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.324e-05/0.3351, allocations: 1.797 kB / 0.5207 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.11e-05/0.3351, allocations: 9.922 kB / 0.5207 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.3354, allocations: 142.6 kB / 0.5209 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3354, allocations: 0 / 0.5209 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3354, allocations: 5.094 kB / 0.5209 GB, free: 1.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.3354, allocations: 0 / 0.5209 GB, free: 1.816 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.0003185/0.3358, allocations: 336.6 kB / 0.5212 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.3358, allocations: 9.484 kB / 0.5212 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.504e-05/0.3358, allocations: 31.88 kB / 0.5212 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.733e-05/0.3359, allocations: 2.938 kB / 0.5212 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.241e-05/0.3359, allocations: 160.9 kB / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.3359, allocations: 2.047 kB / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.336, allocations: 1.5 kB / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.3361, allocations: 50.5 kB / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3361, allocations: 0 / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.3361, allocations: 0 / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3361, allocations: 1.734 kB / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.363e-05/0.3361, allocations: 5.375 kB / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002832/0.3364, allocations: 248.1 kB / 0.5217 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.014e-05/0.3365, allocations: 16.98 kB / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.564e-05/0.3365, allocations: 14.44 kB / 0.5217 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.069e-05/0.3365, allocations: 0 / 0.5217 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.564e-05/0.3365, allocations: 32.52 kB / 0.5217 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.3365, allocations: 0 / 0.5217 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001452/0.3367, allocations: 41.72 kB / 0.5218 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.438e-05/0.3367, allocations: 51.41 kB / 0.5218 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.997e-05/0.3368, allocations: 94.88 kB / 0.5219 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-06/0.3368, allocations: 34.86 kB / 0.5219 GB, free: 0.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.509e-05/0.3368, allocations: 84.84 kB / 0.522 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.212e-06/0.3368, allocations: 5.844 kB / 0.522 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.3369, allocations: 14.11 kB / 0.522 GB, free: 488 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.064e-05/0.3369, allocations: 316.7 kB / 0.5223 GB, free: 164 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.234e-05/0.3369, allocations: 5.828 kB / 0.5224 GB, free: 160 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.044e-05/0.337, allocations: 23.22 kB / 0.5224 GB, free: 132 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.881e-05/0.337, allocations: 26.14 kB / 0.5224 GB, free: 104 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.337, allocations: 0 / 0.5224 GB, free: 104 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.261e-05/0.3371, allocations: 49.38 kB / 0.5224 GB, free: 64 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3371, allocations: 6.031 kB / 0.5225 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.3371, allocations: 0 / 0.5225 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3371, allocations: 5.562 kB / 0.5225 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.804e-05/0.3372, allocations: 10.08 kB / 0.5225 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.3372, allocations: 1.984 kB / 0.5225 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.3372, allocations: 9.359 kB / 0.5225 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.3372, allocations: 5.062 kB / 0.5225 GB, free: 44 kB / 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 9.627e-05/0.3373, allocations: 115.9 kB / 0.5226 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.234e-05/0.3374, allocations: 2.094 kB / 0.5226 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.3375, allocations: 50.78 kB / 0.5226 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3375, allocations: 5.766 kB / 0.5226 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.3375, allocations: 0 / 0.5226 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3375, allocations: 0.875 kB / 0.5226 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.3377, allocations: 154.2 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.3377, allocations: 1.844 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3377, allocations: 0 / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.3377, allocations: 1.125 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-06/0.3377, allocations: 0 / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3377, allocations: 2.016 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3377, allocations: 4.031 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.3378, allocations: 133.8 kB / 0.5229 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.921e-05/0.3379, allocations: 77.77 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.498e-06/0.3379, allocations: 1.188 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.384e-05/0.338, allocations: 1.844 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/0.338, allocations: 1.844 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.338, allocations: 0.8438 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.915e-05/0.338, allocations: 86.16 kB / 0.5231 GB, free: 15.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.338, allocations: 0 / 0.5231 GB, free: 15.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000286/0.3383, allocations: 40.25 kB / 0.5231 GB, free: 15.36 MB / 398.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.000568/0.3389, allocations: 0.7076 MB / 0.5238 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.889e-05/0.339, allocations: 16.67 kB / 0.5238 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.339, allocations: 0 / 0.5238 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.377e-05/0.339, allocations: 29.14 kB / 0.5239 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.3392, allocations: 7 kB / 0.5239 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003951/0.3396, allocations: 123.6 kB / 0.524 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.34, allocations: 0.6768 MB / 0.5247 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.422e-05/0.34, allocations: 5.375 kB / 0.5247 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.227e-05/0.34, allocations: 9.344 kB / 0.5247 GB, free: 13.78 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.34, allocations: 0 / 0.5247 GB, free: 13.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0223/0.3623, allocations: 1.851 MB / 0.5265 GB, free: 13.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.103, allocations: 6.938 kB / 0.5265 GB, free: 13.32 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches