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.001342/0.001343, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001175/0.001175, allocations: 192 kB / 18.56 MB, free: 4.434 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.301/1.301, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.1887/0.1887, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 68.08 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.09294, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001508/0.09449, allocations: 495.6 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.09598, allocations: 1.345 MB / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.184e-05/0.09602, allocations: 0 / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.318e-05/0.09604, allocations: 11.94 kB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.365e-05/0.09608, allocations: 0 / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006159/0.0967, allocations: 215.7 kB / 471.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.836e-05/0.09675, allocations: 11.94 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.355e-05/0.09679, allocations: 4 kB / 471.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.09681, allocations: 11.91 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.898e-05/0.09685, allocations: 4 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.09687, allocations: 0 / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003799/0.09725, allocations: 267.6 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.09727, allocations: 0 / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.597e-05/0.0973, allocations: 4 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.0975, allocations: 147.6 kB / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.09751, allocations: 0 / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.09752, allocations: 0 / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.09752, allocations: 0 / 471.8 MB, free: 11.76 MB / 350.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.0003032/0.09783, allocations: 335.6 kB / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.09787, allocations: 8.031 kB / 472.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.359e-05/0.09791, allocations: 38.69 kB / 472.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.327e-05/0.09794, allocations: 0.9375 kB / 472.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.113e-05/0.09801, allocations: 164.4 kB / 472.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.09803, allocations: 8.375 kB / 472.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.09804, allocations: 384 / 472.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.279e-05/0.09814, allocations: 37.83 kB / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.09815, allocations: 0 / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-06/0.09817, allocations: 0 / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.09818, allocations: 3.938 kB / 472.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.168e-05/0.09821, allocations: 11.98 kB / 472.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002879/0.09851, allocations: 240.8 kB / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.671e-05/0.09855, allocations: 26.61 kB / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.574e-05/0.09858, allocations: 8.859 kB / 472.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.09859, allocations: 0 / 472.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.09862, allocations: 30.56 kB / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.09862, allocations: 64 / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001242/0.09875, allocations: 41.55 kB / 472.8 MB, free: 10.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.0988, allocations: 55.53 kB / 472.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.562e-05/0.09886, allocations: 102.1 kB / 472.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.09888, allocations: 25.7 kB / 473 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.85e-05/0.09892, allocations: 87.98 kB / 473 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.589e-06/0.09893, allocations: 0 / 473 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/0.09896, allocations: 17.72 kB / 473.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.848e-05/0.09906, allocations: 318.8 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.219e-05/0.09908, allocations: 7.922 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.223e-05/0.09911, allocations: 22.7 kB / 473.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.381e-05/0.09914, allocations: 30.52 kB / 473.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.09915, allocations: 0 / 473.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.256e-05/0.09923, allocations: 53.62 kB / 473.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.09925, allocations: 8.094 kB / 473.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.09926, allocations: 0 / 473.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.09927, allocations: 0 / 473.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.266e-05/0.09932, allocations: 8 kB / 473.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.09933, allocations: 0 / 473.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.561e-05/0.09935, allocations: 0 / 473.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.09936, allocations: 4 kB / 473.5 MB, free: 9.852 MB / 350.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.055e-05/0.09943, allocations: 113.8 kB / 473.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.09946, allocations: 0 / 473.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.09958, allocations: 60.7 kB / 473.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.09959, allocations: 4 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.0996, allocations: 0 / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.09961, allocations: 0 / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.09974, allocations: 149.6 kB / 473.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.09975, allocations: 4 kB / 473.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.09976, allocations: 0 / 473.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.09977, allocations: 0 / 473.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.09978, allocations: 4.031 kB / 473.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/0.09978, allocations: 0 / 473.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.09979, allocations: 0 / 473.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.178e-05/0.09988, allocations: 139.4 kB / 474 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.951e-05/0.09992, allocations: 81.05 kB / 474.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.09994, allocations: 4 kB / 474.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.3e-05/0.1, allocations: 0 / 474.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.256e-05/0.1, allocations: 4.031 kB / 474.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.1, allocations: 0 / 474.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.797e-05/0.1001, allocations: 87.27 kB / 474.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1001, allocations: 0 / 474.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1004, allocations: 36 kB / 474.2 MB, free: 9.078 MB / 350.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.000502/0.1009, allocations: 0.7047 MB / 474.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.429e-05/0.101, allocations: 23.86 kB / 474.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.101, allocations: 0 / 474.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.166e-05/0.101, allocations: 29.7 kB / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.1013, allocations: 0 / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003813/0.1016, allocations: 126.6 kB / 475.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002068/0.1019, allocations: 0.6692 MB / 475.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.682e-05/0.1019, allocations: 8 kB / 475.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.189e-05/0.1019, allocations: 7.438 kB / 475.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of SimCode: time 1.442e-06/0.1019, allocations: 0 / 475.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01651/0.1184, allocations: 1.835 MB / 477.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.476/7.595, allocations: 1.031 kB / 477.6 MB, free: 5.648 MB / 350.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