Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001338/0.001338, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.002045/0.002045, allocations: 215.8 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.425/1.425, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2204/0.2204, allocations: 44.93 MB / 358.8 MB, free: 6.078 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 67.91 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3069, allocations: 65.47 MB / 0.557 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001755/0.3086, allocations: 0.5106 MB / 0.5575 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004559/0.3091, allocations: 151.7 kB / 0.5576 GB, free: 6.844 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.933e-05/0.3091, allocations: 4 kB / 0.5576 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.683e-05/0.3091, allocations: 1.094 kB / 0.5576 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.3094, allocations: 40.86 kB / 0.5577 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.068e-06/0.3094, allocations: 0 / 0.5577 GB, free: 6.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.179e-05/0.3095, allocations: 21.08 kB / 0.5577 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.692e-05/0.3095, allocations: 1.281 kB / 0.5577 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.389e-05/0.3095, allocations: 15.77 kB / 0.5577 GB, free: 6.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.95e-05/0.3096, allocations: 12.08 kB / 0.5577 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.3096, allocations: 1.219 kB / 0.5577 GB, free: 6.777 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.3097, allocations: 49.2 kB / 0.5577 GB, free: 6.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.3098, allocations: 7.984 kB / 0.5578 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.622e-05/0.3098, allocations: 7.938 kB / 0.5578 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.3099, allocations: 53.62 kB / 0.5578 GB, free: 6.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3099, allocations: 0 / 0.5578 GB, free: 6.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3099, allocations: 0 / 0.5578 GB, free: 6.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.3099, allocations: 0 / 0.5578 GB, free: 6.672 MB / 398.1 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.0003419/0.3103, allocations: 270.1 kB / 0.5581 GB, free: 6.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.3103, allocations: 8.031 kB / 0.5581 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.829e-05/0.3103, allocations: 38.75 kB / 0.5581 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.271e-05/0.3104, allocations: 0.9375 kB / 0.5581 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.3105, allocations: 118.5 kB / 0.5582 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.3105, allocations: 4.359 kB / 0.5582 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.639e-05/0.3105, allocations: 8.375 kB / 0.5582 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.3106, allocations: 58.19 kB / 0.5583 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.3107, allocations: 3.938 kB / 0.5583 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.3107, allocations: 0 / 0.5583 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.3107, allocations: 7.984 kB / 0.5583 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.3108, allocations: 51.95 kB / 0.5584 GB, free: 6.043 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001895/0.311, allocations: 140.7 kB / 0.5585 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.3111, allocations: 74.83 kB / 0.5586 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.173e-05/0.3112, allocations: 32.78 kB / 0.5586 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002223/0.3114, allocations: 23.98 kB / 0.5586 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.3114, allocations: 34.56 kB / 0.5587 GB, free: 5.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.3114, allocations: 0 / 0.5587 GB, free: 5.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002292/0.3116, allocations: 105.5 kB / 0.5588 GB, free: 5.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.3117, allocations: 51.41 kB / 0.5588 GB, free: 5.508 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.315e-05/0.3118, allocations: 89.86 kB / 0.5589 GB, free: 5.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.3118, allocations: 33.7 kB / 0.5589 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.3118, allocations: 80.27 kB / 0.559 GB, free: 5.289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.856e-05/0.3119, allocations: 43.67 kB / 0.559 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-05/0.3119, allocations: 21.7 kB / 0.5591 GB, free: 5.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.312, allocations: 318.8 kB / 0.5594 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.486e-05/0.3121, allocations: 15.98 kB / 0.5594 GB, free: 4.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.349e-05/0.3121, allocations: 20.31 kB / 0.5594 GB, free: 4.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.719e-05/0.3122, allocations: 56.78 kB / 0.5594 GB, free: 4.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3122, allocations: 0 / 0.5594 GB, free: 4.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001364/0.3123, allocations: 89.58 kB / 0.5595 GB, free: 4.711 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.3123, allocations: 7.938 kB / 0.5595 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3123, allocations: 0 / 0.5595 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.3124, allocations: 7.938 kB / 0.5595 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.3125, allocations: 19.98 kB / 0.5596 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3125, allocations: 0 / 0.5596 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.353e-05/0.3125, allocations: 0 / 0.5596 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.3125, allocations: 4 kB / 0.5596 GB, free: 4.672 MB / 398.1 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 8.631e-05/0.3126, allocations: 109.8 kB / 0.5597 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.3126, allocations: 11.89 kB / 0.5597 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.3128, allocations: 101.5 kB / 0.5598 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3128, allocations: 0 / 0.5598 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3128, allocations: 0 / 0.5598 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3128, allocations: 7.984 kB / 0.5598 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.313, allocations: 136.7 kB / 0.5599 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.313, allocations: 3.938 kB / 0.5599 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.692e-05/0.313, allocations: 15.98 kB / 0.5599 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.313, allocations: 4.312 kB / 0.5599 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.313, allocations: 8 kB / 0.56 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.313, allocations: 0 / 0.56 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.313, allocations: 0 / 0.56 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.3132, allocations: 120.9 kB / 0.5601 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.283e-06/0.3132, allocations: 4 kB / 0.5601 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.3132, allocations: 3.938 kB / 0.5601 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.505e-05/0.3132, allocations: 8 kB / 0.5601 GB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.44e-05/0.3133, allocations: 7.984 kB / 0.5601 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.3133, allocations: 0 / 0.5601 GB, free: 4.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.18e-05/0.3133, allocations: 79.28 kB / 0.5602 GB, free: 3.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3133, allocations: 0 / 0.5602 GB, free: 3.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002071/0.3135, allocations: 16 kB / 0.5602 GB, free: 3.965 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 (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.0005228/0.314, allocations: 0.6552 MB / 0.5608 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001264/0.3142, allocations: 55.91 kB / 0.5609 GB, free: 3.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3142, allocations: 4.094 kB / 0.5609 GB, free: 3.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.162e-05/0.3142, allocations: 27.94 kB / 0.5609 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.3144, allocations: 4 kB / 0.5609 GB, free: 3.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.3148, allocations: 175.1 kB / 0.5611 GB, free: 2.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.208e-05/0.3149, allocations: 63.34 kB / 0.5611 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.512e-05/0.3149, allocations: 11.77 kB / 0.5611 GB, free: 2.887 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.775e-05/0.3149, allocations: 19.38 kB / 0.5612 GB, free: 2.867 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3149, allocations: 4 kB / 0.5612 GB, free: 2.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/0.3417, allocations: 2.058 MB / 0.5632 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.35, allocations: 11.94 kB / 0.5632 GB, free: 0.9219 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2_a from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3 in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3 from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3_a in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3_a from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x2err in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2err from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3err in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3err from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.315665179863572]