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.001146/0.001146, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001158/0.001158, allocations: 181 kB / 18.71 MB, free: 4.207 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.323/1.323, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.1987/0.1987, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3548, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001359/0.3562, allocations: 496.4 kB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.3575, allocations: 1.361 MB / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.005e-05/0.3575, allocations: 0 / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.382e-05/0.3575, allocations: 0 / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.901e-05/0.3576, allocations: 0 / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006164/0.3582, allocations: 223.7 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.888e-05/0.3582, allocations: 6.875 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.485e-05/0.3583, allocations: 1.422 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.3583, allocations: 7.047 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.957e-05/0.3583, allocations: 7.141 kB / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.417e-06/0.3584, allocations: 0 / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004171/0.3588, allocations: 275 kB / 0.5207 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.115e-05/0.3588, allocations: 1.922 kB / 0.5207 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.669e-05/0.3588, allocations: 1.734 kB / 0.5207 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.359, allocations: 143.2 kB / 0.5208 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3591, allocations: 5.125 kB / 0.5209 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3591, allocations: 3.938 kB / 0.5209 GB, free: 1.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.3591, 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.0002501/0.3593, allocations: 335.4 kB / 0.5212 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.3594, allocations: 9.719 kB / 0.5212 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.171e-05/0.3594, allocations: 32.67 kB / 0.5212 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.264e-05/0.3594, allocations: 2.094 kB / 0.5212 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.335e-05/0.3595, allocations: 161.1 kB / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.883e-06/0.3595, allocations: 2.094 kB / 0.5214 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-06/0.3595, allocations: 5.406 kB / 0.5214 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.521e-05/0.3596, allocations: 46.48 kB / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.3596, allocations: 0 / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.3596, allocations: 1.188 kB / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.3596, allocations: 0 / 0.5214 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.871e-05/0.3597, allocations: 9.906 kB / 0.5214 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002357/0.3599, allocations: 243.5 kB / 0.5217 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.617e-05/0.3599, allocations: 20.56 kB / 0.5217 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.334e-05/0.3599, allocations: 11.08 kB / 0.5217 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-06/0.36, allocations: 0.7969 kB / 0.5217 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.099e-05/0.36, allocations: 36.12 kB / 0.5217 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.36, allocations: 0 / 0.5217 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001139/0.3601, allocations: 36.59 kB / 0.5218 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.469e-05/0.3601, allocations: 53.27 kB / 0.5218 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.066e-05/0.3602, allocations: 101.6 kB / 0.5219 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.442e-06/0.3602, allocations: 30.77 kB / 0.5219 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.049e-05/0.3602, allocations: 86.02 kB / 0.522 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-06/0.3602, allocations: 0.7969 kB / 0.522 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.3602, allocations: 14.05 kB / 0.522 GB, free: 488 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.351e-05/0.3603, allocations: 320.6 kB / 0.5223 GB, free: 160 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.106e-05/0.3603, allocations: 2.812 kB / 0.5223 GB, free: 160 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.837e-05/0.3603, allocations: 35.17 kB / 0.5224 GB, free: 120 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.57e-05/0.3603, allocations: 24.53 kB / 0.5224 GB, free: 92 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3604, allocations: 1 kB / 0.5224 GB, free: 92 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.939e-05/0.3604, allocations: 48.91 kB / 0.5225 GB, free: 52 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.3604, allocations: 6.547 kB / 0.5225 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.3604, allocations: 96 / 0.5225 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.3605, allocations: 5.156 kB / 0.5225 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.283e-05/0.3605, allocations: 10 kB / 0.5225 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-06/0.3605, allocations: 1.156 kB / 0.5225 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.3605, allocations: 6.078 kB / 0.5225 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.3605, allocations: 2.812 kB / 0.5225 GB, free: 40 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 7.004e-05/0.3606, allocations: 112 kB / 0.5226 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.257e-05/0.3607, allocations: 1.406 kB / 0.5226 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.655e-05/0.3608, allocations: 55.34 kB / 0.5226 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3608, allocations: 0 / 0.5226 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3608, allocations: 1.156 kB / 0.5226 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.3608, allocations: 0.6562 kB / 0.5226 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.3609, allocations: 154.3 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.3609, allocations: 1.094 kB / 0.5228 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.3609, allocations: 3.938 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.361, allocations: 1.781 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.361, allocations: 0 / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.361, allocations: 5.438 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.361, allocations: 0.6562 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.264e-05/0.3611, allocations: 133.2 kB / 0.5229 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.768e-05/0.3611, allocations: 77.67 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.094e-05/0.3611, allocations: 1.656 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.024e-05/0.3612, allocations: 1.578 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.356e-05/0.3612, allocations: 1.031 kB / 0.523 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.3612, allocations: 5.859 kB / 0.523 GB, free: 15.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.344e-05/0.3613, allocations: 82.25 kB / 0.5231 GB, free: 15.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3613, allocations: 0 / 0.5231 GB, free: 15.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000274/0.3615, allocations: 43.89 kB / 0.5231 GB, free: 15.35 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.0005029/0.3621, allocations: 0.7029 MB / 0.5238 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.734e-05/0.3621, allocations: 13.2 kB / 0.5238 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3621, allocations: 0 / 0.5238 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.852e-05/0.3622, allocations: 33.5 kB / 0.5239 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.3624, allocations: 6.703 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.0003473/0.3627, 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.0002281/0.363, allocations: 0.6773 MB / 0.5247 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.404e-05/0.363, allocations: 9.5 kB / 0.5247 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.933e-05/0.363, allocations: 9.391 kB / 0.5247 GB, free: 13.77 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.363, allocations: 0 / 0.5247 GB, free: 13.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01629/0.3793, allocations: 1.844 MB / 0.5265 GB, free: 13.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.444/7.823, allocations: 6.625 kB / 0.5265 GB, free: 13.31 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