Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008697/0.0008697, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009425/0.0009425, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9121/0.9121, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2605/0.2605, allocations: 34.25 MB / 294.9 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.614e-05/1.784e-05, allocations: 5.094 kB / 442.2 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0009858/0.001004, allocations: 497.2 kB / 442.6 MB, free: 1.195 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1948/0.1958, allocations: 1.347 MB / 444 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.686e-05/0.1958, allocations: 2.875 kB / 444 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.122e-05/0.1959, allocations: 2.906 kB / 444 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.133e-05/0.1959, allocations: 0 / 444 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005703/0.1965, allocations: 220.4 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.823e-05/0.1965, allocations: 10.44 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.774e-05/0.1966, allocations: 2.906 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.251e-05/0.1966, allocations: 4.156 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.944e-05/0.1966, allocations: 6.641 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.1967, allocations: 6.094 kB / 444.2 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002998/0.197, allocations: 256.3 kB / 444.5 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.364e-05/0.197, allocations: 0 / 444.5 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.71e-05/0.197, allocations: 5.406 kB / 444.5 MB, free: 43.29 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.1972, allocations: 196.8 kB / 444.7 MB, free: 43.29 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1972, allocations: 0.7188 kB / 444.7 MB, free: 43.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1972, allocations: 0 / 444.7 MB, free: 43.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1972, allocations: 3.625 kB / 444.7 MB, free: 43.29 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003104/0.1975, allocations: 265.2 kB / 444.9 MB, free: 43.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1976, allocations: 11.34 kB / 445 MB, free: 43.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.639e-05/0.1976, allocations: 30.75 kB / 445 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.977e-05/0.1976, allocations: 0.9375 kB / 445 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.855e-05/0.1977, allocations: 115.8 kB / 445.1 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.1977, allocations: 384 / 445.1 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.1977, allocations: 384 / 445.1 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001044/0.1978, allocations: 59.25 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.1978, allocations: 2.281 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.1978, allocations: 4.125 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.1978, allocations: 0 / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.779e-05/0.1979, allocations: 11.84 kB / 445.2 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.205e-05/0.1979, allocations: 119.5 kB / 445.3 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.254e-05/0.198, allocations: 17.55 kB / 445.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.239e-05/0.198, allocations: 8.172 kB / 445.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.198, allocations: 2.344 kB / 445.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.198, allocations: 33.5 kB / 445.4 MB, free: 42.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.198, allocations: 0 / 445.4 MB, free: 42.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001116/0.1981, allocations: 41.69 kB / 445.4 MB, free: 42.53 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.983e-05/0.1981, allocations: 58.16 kB / 445.5 MB, free: 42.47 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.681e-05/0.1982, allocations: 92.92 kB / 445.5 MB, free: 42.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.019e-06/0.1982, allocations: 27.23 kB / 445.6 MB, free: 42.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.127e-05/0.1982, allocations: 83.38 kB / 445.7 MB, free: 42.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.1982, allocations: 3.719 kB / 445.7 MB, free: 42.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.91e-05/0.1982, allocations: 12.72 kB / 445.7 MB, free: 42.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.937e-05/0.1983, allocations: 315.4 kB / 446 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.258e-06/0.1983, allocations: 6.875 kB / 446 MB, free: 41.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.062e-06/0.1983, allocations: 0 / 446 MB, free: 41.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.083e-05/0.1983, allocations: 15.2 kB / 446 MB, free: 41.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1983, allocations: 0 / 446 MB, free: 41.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.011e-05/0.1983, allocations: 41.7 kB / 446 MB, free: 41.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1983, allocations: 5.969 kB / 446 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1984, allocations: 0 / 446 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1984, allocations: 3.938 kB / 446 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.589e-05/0.1984, allocations: 2.906 kB / 446.1 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.1984, allocations: 3.203 kB / 446.1 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.223e-06/0.1984, allocations: 0 / 446.1 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1984, allocations: 0.6562 kB / 446.1 MB, free: 41.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * 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 3.914e-05/0.1985, allocations: 119.8 kB / 446.2 MB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.487e-06/0.1985, allocations: 0 / 446.2 MB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.758e-05/0.1986, allocations: 45.58 kB / 446.2 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.1986, allocations: 3.938 kB / 446.2 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1986, allocations: 2.969 kB / 446.2 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1986, allocations: 4.797 kB / 446.2 MB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.161e-05/0.1986, allocations: 119.5 kB / 446.3 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1986, allocations: 7.266 kB / 446.4 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.71e-07/0.1986, allocations: 0 / 446.4 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.61e-07/0.1986, allocations: 0 / 446.4 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1986, allocations: 4.438 kB / 446.4 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.1986, allocations: 3.938 kB / 446.4 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1986, allocations: 0 / 446.4 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.692e-05/0.1987, allocations: 55.33 kB / 446.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.622e-06/0.1987, allocations: 7.141 kB / 446.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.1987, allocations: 3 kB / 446.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.169e-05/0.1988, allocations: 3.938 kB / 446.4 MB, free: 41.49 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.1988, allocations: 10.88 kB / 446.4 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.1988, allocations: 0 / 446.4 MB, free: 41.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.517e-05/0.1988, allocations: 81.53 kB / 446.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1988, allocations: 0 / 446.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001494/0.1989, allocations: 37.84 kB / 446.6 MB, free: 41.41 MB / 410.7 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.0002976/0.1992, allocations: 0.6378 MB / 447.2 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.808e-05/0.1993, allocations: 5.844 kB / 447.2 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.1993, allocations: 0 / 447.2 MB, free: 40.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.397e-05/0.1993, allocations: 36.7 kB / 447.2 MB, free: 40.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.1995, allocations: 11.42 kB / 447.2 MB, free: 40.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003016/0.1998, allocations: 132.9 kB / 447.4 MB, free: 40.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.621e-05/0.1998, allocations: 54.33 kB / 447.4 MB, free: 40.57 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.703e-05/0.1998, allocations: 0 / 447.4 MB, free: 40.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/0.1999, allocations: 11.44 kB / 447.4 MB, free: 40.56 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1999, allocations: 0 / 447.4 MB, free: 40.56 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01309/0.2129, allocations: 2.511 MB / 449.9 MB, free: 39.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.229/7.442, allocations: 6.906 kB / 450 MB, free: 39.69 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.019992 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.54648049455136]