Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.001081/0.001081, 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.001104/0.001104, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9065/0.9065, allocations: 177.1 MB / 204.3 MB, free: 5.723 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.2661/0.2661, allocations: 34.25 MB / 294.9 MB, free: 0.7109 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.TestRegFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 442.1 MB, free: 1.695 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.124e-05/2.312e-05, allocations: 2.281 kB / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001515/0.001538, allocations: 0.5393 MB / 442.7 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003034/0.001842, allocations: 147.4 kB / 442.8 MB, free: 1.012 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.516e-05/0.001867, allocations: 0 / 442.8 MB, free: 1.012 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.001881, allocations: 0 / 442.8 MB, free: 1.012 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.002104, allocations: 43.83 kB / 442.9 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.998e-06/0.002108, allocations: 0 / 442.9 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.938e-05/0.002157, allocations: 23.86 kB / 442.9 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.817e-05/0.002196, allocations: 0 / 442.9 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.932e-05/0.002225, allocations: 11.92 kB / 442.9 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.235e-05/0.002277, allocations: 11.98 kB / 442.9 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.002289, allocations: 4 kB / 442.9 MB, free: 0.918 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.889e-05/0.002378, allocations: 51.88 kB / 443 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.034e-05/0.002388, allocations: 3.938 kB / 443 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.345e-05/0.002402, allocations: 3.984 kB / 443 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.572e-05/0.002497, allocations: 51.81 kB / 443 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.0025, allocations: 4 kB / 443 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.002501, allocations: 0 / 443 MB, free: 0.8047 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.002505, allocations: 0 / 443 MB, free: 0.8047 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002377/0.002743, allocations: 266.2 kB / 443.3 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.002781, allocations: 8.031 kB / 443.3 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.002809, allocations: 34.73 kB / 443.3 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.151e-05/0.002831, allocations: 4.938 kB / 443.3 MB, free: 468 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.117e-05/0.002902, allocations: 109.7 kB / 443.5 MB, free: 332 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.002912, allocations: 8.375 kB / 443.5 MB, free: 324 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.002921, allocations: 4.375 kB / 443.5 MB, free: 320 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.003024, allocations: 62.17 kB / 443.5 MB, free: 252 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.003031, allocations: 192 / 443.5 MB, free: 252 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.003042, allocations: 8.375 kB / 443.5 MB, free: 244 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.003047, allocations: 4.125 kB / 443.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.655e-05/0.003124, allocations: 51.89 kB / 443.6 MB, free: 188 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.003254, allocations: 140.7 kB / 443.7 MB, free: 4 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1655/0.1688, allocations: 72.12 kB / 443.8 MB, free: 44.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.843e-05/0.1688, allocations: 25.86 kB / 443.8 MB, free: 44.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002295/0.169, allocations: 21.8 kB / 443.8 MB, free: 44.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.1691, allocations: 39.12 kB / 443.9 MB, free: 44.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.514e-06/0.1691, allocations: 0 / 443.9 MB, free: 44.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001988/0.1693, allocations: 104.3 kB / 444 MB, free: 44.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.224e-05/0.1693, allocations: 57.69 kB / 444 MB, free: 44.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.73e-05/0.1693, allocations: 93.95 kB / 444.1 MB, free: 44.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.293e-06/0.1693, allocations: 26.83 kB / 444.2 MB, free: 44.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.674e-06/0.1693, allocations: 82.61 kB / 444.2 MB, free: 43.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.302e-05/0.1694, allocations: 38 kB / 444.3 MB, free: 43.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.1694, allocations: 20.84 kB / 444.3 MB, free: 43.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.872e-05/0.1694, allocations: 318.4 kB / 444.6 MB, free: 43.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.472e-05/0.1695, allocations: 16.22 kB / 444.6 MB, free: 43.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.312e-05/0.1695, allocations: 21.31 kB / 444.6 MB, free: 43.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.76e-05/0.1695, allocations: 53.66 kB / 444.7 MB, free: 43.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1695, allocations: 2.781 kB / 444.7 MB, free: 43.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.68e-05/0.1696, allocations: 86.56 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1696, allocations: 5.938 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1696, allocations: 2.594 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.1696, allocations: 2.438 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.372e-05/0.1697, allocations: 17.78 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1697, allocations: 0.5625 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.532e-05/0.1697, allocations: 6.516 kB / 444.8 MB, free: 43.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1698, allocations: 7.25 kB / 444.8 MB, free: 43.55 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 (10): * Single equations (assignments): 10 * 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 4.048e-05/0.1698, allocations: 114.9 kB / 444.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.641e-06/0.1698, allocations: 3.5 kB / 444.9 MB, free: 43.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.1699, allocations: 107.6 kB / 445 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1699, allocations: 0 / 445 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.1699, allocations: 0 / 445 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1699, allocations: 3 kB / 445 MB, free: 43.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.352e-05/0.17, allocations: 147.2 kB / 445.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.17, allocations: 2.906 kB / 445.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.4e-05/0.17, allocations: 12.47 kB / 445.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.17, allocations: 0.8438 kB / 445.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.17, allocations: 8.047 kB / 445.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.17, allocations: 6.594 kB / 445.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.17, allocations: 1.312 kB / 445.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.064e-05/0.1701, allocations: 110.2 kB / 445.3 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-06/0.1701, allocations: 13.14 kB / 445.3 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.1701, allocations: 2.875 kB / 445.3 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.1702, allocations: 0 / 445.3 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.456e-05/0.1702, allocations: 11.34 kB / 445.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.1702, allocations: 2.875 kB / 445.4 MB, free: 43.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.999e-06/0.1702, allocations: 78.34 kB / 445.4 MB, free: 43.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1702, allocations: 3.719 kB / 445.4 MB, free: 43.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001414/0.1703, allocations: 21.55 kB / 445.5 MB, free: 43.09 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0002044/0.1705, allocations: 0.6523 MB / 446.1 MB, free: 42.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.117e-05/0.1706, allocations: 49.94 kB / 446.2 MB, free: 42.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1706, allocations: 288 / 446.2 MB, free: 42.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.332e-05/0.1706, allocations: 35.5 kB / 446.2 MB, free: 42.49 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001113/0.1708, allocations: 7.391 kB / 446.2 MB, free: 42.49 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003156/0.1711, allocations: 171.1 kB / 446.4 MB, free: 42.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.967e-05/0.1711, allocations: 77.14 kB / 446.4 MB, free: 42.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.614e-05/0.1711, allocations: 6.188 kB / 446.5 MB, free: 42.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.751e-05/0.1712, allocations: 14.81 kB / 446.5 MB, free: 42.27 MB / 410.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1712, allocations: 2.906 kB / 446.5 MB, free: 42.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01488/0.186, allocations: 2.2 MB / 448.7 MB, free: 41.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.239/7.425, allocations: 5.969 kB / 448.7 MB, free: 41.4 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable x2_a in file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2_a from file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3 in file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3 from file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3_a in file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3_a from file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x2err in file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2err from file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3err in file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3err from file ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.561687991954386]