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.001321/0.001321, allocations: 105.1 kB / 21.22 MB, free: 492 kB / 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.001496/0.001496, allocations: 208.6 kB / 24.51 MB, free: 3.648 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.444/1.444, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.2134/0.2134, allocations: 44.95 MB / 359.6 MB, free: 6.035 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="cs",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.002029/0.002029, allocations: 63.91 kB / 0.4938 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.308, allocations: 65.47 MB / 0.5577 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001896/0.3099, allocations: 493.9 kB / 0.5582 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.3119, allocations: 1.358 MB / 0.5595 GB, free: 5.668 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.361e-05/0.3119, allocations: 0 / 0.5595 GB, free: 5.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.194e-05/0.3119, allocations: 3.938 kB / 0.5595 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.871e-05/0.312, allocations: 0 / 0.5595 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006924/0.3127, allocations: 211.4 kB / 0.5597 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.67e-05/0.3127, allocations: 7.938 kB / 0.5597 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.3127, allocations: 11.98 kB / 0.5597 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.538e-05/0.3128, allocations: 0 / 0.5597 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.867e-05/0.3128, allocations: 8 kB / 0.5597 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.3128, allocations: 0 / 0.5597 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004426/0.3133, allocations: 267.6 kB / 0.56 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.438e-05/0.3133, allocations: 4 kB / 0.56 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.705e-05/0.3133, allocations: 11.92 kB / 0.56 GB, free: 5.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.3135, allocations: 137.5 kB / 0.5601 GB, free: 5.023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.3135, allocations: 4 kB / 0.5601 GB, free: 5.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3135, allocations: 0 / 0.5601 GB, free: 5.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3135, allocations: 0 / 0.5601 GB, free: 5.02 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.0004518/0.314, allocations: 270.2 kB / 0.5604 GB, free: 4.727 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.314, allocations: 8.031 kB / 0.5604 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.268e-05/0.314, allocations: 192 / 0.5604 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.262e-05/0.3141, allocations: 34.75 kB / 0.5604 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.894e-05/0.3141, allocations: 4.938 kB / 0.5605 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.3142, allocations: 106.5 kB / 0.5606 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.3142, allocations: 4.312 kB / 0.5606 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-06/0.3142, allocations: 384 / 0.5606 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.3143, allocations: 67.33 kB / 0.5606 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.3143, allocations: 4 kB / 0.5606 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.3144, allocations: 0 / 0.5606 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.3144, allocations: 4 kB / 0.5606 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.97e-05/0.3144, allocations: 3.938 kB / 0.5606 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.3145, allocations: 120.8 kB / 0.5607 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.954e-05/0.3146, allocations: 22.52 kB / 0.5608 GB, free: 4.258 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.124e-05/0.3146, allocations: 12.94 kB / 0.5608 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.3146, allocations: 3.938 kB / 0.5608 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.3146, allocations: 30.56 kB / 0.5608 GB, free: 4.199 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3146, allocations: 0 / 0.5608 GB, free: 4.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.3148, allocations: 41.64 kB / 0.5609 GB, free: 4.152 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.3148, allocations: 51.41 kB / 0.5609 GB, free: 4.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.142e-05/0.3149, allocations: 101.8 kB / 0.561 GB, free: 3.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.3149, allocations: 25.7 kB / 0.561 GB, free: 3.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.497e-05/0.3149, allocations: 80.14 kB / 0.5611 GB, free: 3.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.3149, allocations: 3.953 kB / 0.5611 GB, free: 3.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.315, allocations: 13.72 kB / 0.5611 GB, free: 3.844 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3151, allocations: 314.8 kB / 0.5614 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.306e-05/0.3151, allocations: 4 kB / 0.5614 GB, free: 3.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.713e-06/0.3151, allocations: 256 / 0.5614 GB, free: 3.523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.838e-05/0.3152, allocations: 16.91 kB / 0.5614 GB, free: 3.504 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3152, allocations: 0 / 0.5614 GB, free: 3.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.337e-05/0.3152, allocations: 41.58 kB / 0.5615 GB, free: 3.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.3152, allocations: 6.188 kB / 0.5615 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3152, allocations: 0 / 0.5615 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.3153, allocations: 0 / 0.5615 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.261e-05/0.3153, allocations: 4 kB / 0.5615 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.3153, allocations: 0 / 0.5615 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.319e-05/0.3153, allocations: 0 / 0.5615 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.3154, allocations: 0 / 0.5615 GB, free: 3.449 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 8.456e-05/0.3154, allocations: 121.9 kB / 0.5616 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.009e-05/0.3154, allocations: 3.938 kB / 0.5616 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.3156, allocations: 36.86 kB / 0.5616 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.3156, allocations: 3.938 kB / 0.5616 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3156, allocations: 0 / 0.5616 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3156, allocations: 3.984 kB / 0.5617 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001042/0.3157, allocations: 124.8 kB / 0.5618 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.3157, allocations: 7.969 kB / 0.5618 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.344e-06/0.3157, allocations: 4 kB / 0.5618 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.3157, allocations: 3.938 kB / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-06/0.3157, allocations: 4 kB / 0.5618 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3157, allocations: 3.938 kB / 0.5618 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.3157, allocations: 0 / 0.5618 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.74e-05/0.3158, allocations: 61.12 kB / 0.5619 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.356e-06/0.3158, allocations: 7.938 kB / 0.5619 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.998e-06/0.3158, allocations: 4 kB / 0.5619 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.369e-05/0.3159, allocations: 32 / 0.5619 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.3159, allocations: 7.984 kB / 0.5619 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.3159, allocations: 4 kB / 0.5619 GB, free: 2.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.239e-05/0.3159, allocations: 75.28 kB / 0.5619 GB, free: 2.898 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3159, allocations: 0 / 0.5619 GB, free: 2.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000255/0.3162, allocations: 39.94 kB / 0.562 GB, free: 2.859 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.000616/0.3168, allocations: 0.6357 MB / 0.5626 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.2e-05/0.3169, allocations: 7.984 kB / 0.5626 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3169, allocations: 192 / 0.5626 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.957e-05/0.3169, allocations: 37.64 kB / 0.5626 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.3171, allocations: 1.891 kB / 0.5627 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.3175, allocations: 122.6 kB / 0.5628 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.873e-05/0.3175, allocations: 59.3 kB / 0.5628 GB, free: 1.902 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.408e-05/0.3175, allocations: 0 / 0.5628 GB, free: 1.902 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.606e-05/0.3176, allocations: 7.438 kB / 0.5628 GB, free: 1.895 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3176, allocations: 0 / 0.5628 GB, free: 1.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.3382, allocations: 2.025 MB / 0.5648 GB, free: 8 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.65, allocations: 4.062 kB / 0.5648 GB, free: 4 kB / 398.1 MB " [Timeout remaining time 648] (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.566725163022056]