Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001869/0.001869, 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.00238/0.00238, allocations: 214.3 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.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.2397/0.2397, allocations: 44.93 MB / 358.8 MB, free: 6.074 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.Test01RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",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.00205/0.00205, allocations: 71.89 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2898, allocations: 65.46 MB / 0.5569 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001609/0.2914, allocations: 0.4985 MB / 0.5574 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.2934, allocations: 1.349 MB / 0.5587 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.408e-05/0.2934, allocations: 4 kB / 0.5588 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.503e-05/0.2934, allocations: 3.938 kB / 0.5588 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.744e-05/0.2935, allocations: 0 / 0.5588 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007109/0.2942, allocations: 215.5 kB / 0.559 GB, free: 5.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.731e-05/0.2942, allocations: 11.92 kB / 0.559 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.728e-05/0.2943, allocations: 0 / 0.559 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.141e-05/0.2943, allocations: 8 kB / 0.559 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.37e-05/0.2943, allocations: 3.938 kB / 0.559 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.2943, allocations: 0 / 0.559 GB, free: 5.484 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.2948, allocations: 255.6 kB / 0.5592 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.2948, allocations: 15.97 kB / 0.5592 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.494e-05/0.2948, allocations: 0 / 0.5592 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.2951, allocations: 141.5 kB / 0.5594 GB, free: 5.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.2951, allocations: 0 / 0.5594 GB, free: 5.082 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2951, allocations: 0 / 0.5594 GB, free: 5.082 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2951, allocations: 0 / 0.5594 GB, free: 5.082 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003729/0.2955, allocations: 266.2 kB / 0.5596 GB, free: 4.793 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.2955, allocations: 8.031 kB / 0.5596 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.2955, allocations: 30.75 kB / 0.5597 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.819e-05/0.2956, allocations: 4.938 kB / 0.5597 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.2957, allocations: 122.3 kB / 0.5598 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.2957, allocations: 384 / 0.5598 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.362e-06/0.2957, allocations: 384 / 0.5598 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.2958, allocations: 67.52 kB / 0.5599 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.2958, allocations: 0 / 0.5599 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.2958, allocations: 0 / 0.5599 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.2958, allocations: 0 / 0.5599 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.887e-05/0.2958, allocations: 4 kB / 0.5599 GB, free: 4.516 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001435/0.296, allocations: 120.8 kB / 0.56 GB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.556e-05/0.296, allocations: 22.52 kB / 0.56 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.04e-05/0.2961, allocations: 12.95 kB / 0.56 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.385e-06/0.2961, allocations: 0 / 0.56 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.2961, allocations: 34.5 kB / 0.56 GB, free: 4.266 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.2961, allocations: 0 / 0.56 GB, free: 4.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001216/0.2962, allocations: 41.62 kB / 0.5601 GB, free: 4.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.2963, allocations: 51.41 kB / 0.5601 GB, free: 4.156 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.057e-05/0.2963, allocations: 97.86 kB / 0.5602 GB, free: 4.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.2964, allocations: 25.7 kB / 0.5602 GB, free: 4.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.851e-05/0.2964, allocations: 80.14 kB / 0.5603 GB, free: 3.938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.2964, allocations: 4.203 kB / 0.5603 GB, free: 3.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.2964, allocations: 17.72 kB / 0.5603 GB, free: 3.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2966, allocations: 314.8 kB / 0.5606 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.575e-05/0.2966, allocations: 7.984 kB / 0.5607 GB, free: 3.586 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.813e-06/0.2966, allocations: 0 / 0.5607 GB, free: 3.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.592e-05/0.2966, allocations: 8.859 kB / 0.5607 GB, free: 3.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2966, allocations: 0 / 0.5607 GB, free: 3.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.656e-05/0.2967, allocations: 41.58 kB / 0.5607 GB, free: 3.527 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.2967, allocations: 4 kB / 0.5607 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2967, allocations: 0 / 0.5607 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.2967, allocations: 4.094 kB / 0.5607 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.246e-05/0.2968, allocations: 4 kB / 0.5607 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.2968, allocations: 3.984 kB / 0.5607 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.199e-05/0.2968, allocations: 0 / 0.5607 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-06/0.2968, allocations: 0 / 0.5607 GB, free: 3.512 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 (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 7.721e-05/0.2969, allocations: 113.8 kB / 0.5608 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.859e-06/0.2969, allocations: 3.938 kB / 0.5608 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.297, allocations: 52.78 kB / 0.5609 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.297, allocations: 0 / 0.5609 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.297, allocations: 0 / 0.5609 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.297, allocations: 0 / 0.5609 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.2971, allocations: 124.7 kB / 0.561 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.2971, allocations: 0 / 0.561 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.565e-06/0.2971, allocations: 7.875 kB / 0.561 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.2971, allocations: 0 / 0.561 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.2971, allocations: 4 kB / 0.561 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2971, allocations: 3.984 kB / 0.561 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2972, allocations: 0 / 0.561 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.452e-05/0.2972, allocations: 61.17 kB / 0.5611 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.196e-06/0.2972, allocations: 7.938 kB / 0.5611 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.2973, allocations: 4 kB / 0.5611 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.201e-05/0.2973, allocations: 3.984 kB / 0.5611 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-06/0.2973, allocations: 0 / 0.5611 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.792e-06/0.2973, allocations: 4 kB / 0.5611 GB, free: 3.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.015e-05/0.2974, allocations: 75.28 kB / 0.5612 GB, free: 2.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2974, allocations: 0 / 0.5612 GB, free: 2.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.2976, allocations: 39.94 kB / 0.5612 GB, free: 2.934 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.0005692/0.2982, allocations: 0.6437 MB / 0.5618 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.796e-05/0.2983, allocations: 4 kB / 0.5618 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2983, allocations: 0 / 0.5618 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.673e-05/0.2983, allocations: 29.7 kB / 0.5619 GB, free: 2.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.2984, allocations: 4.766 kB / 0.5619 GB, free: 2.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003525/0.2988, allocations: 122.6 kB / 0.562 GB, free: 2.059 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.948e-05/0.2988, allocations: 59.34 kB / 0.562 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.033e-05/0.2989, allocations: 12.14 kB / 0.562 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.337e-05/0.2989, allocations: 7.438 kB / 0.5621 GB, free: 1.961 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2989, allocations: 0 / 0.5621 GB, free: 1.961 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.3249, allocations: 2.361 MB / 0.5644 GB, free: 15.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.24, allocations: 10.36 kB / 0.5644 GB, free: 15.72 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 14.108400172088295]