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.001384/0.001384, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00161/0.00161, allocations: 215.7 kB / 23.75 MB, free: 4.668 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.426/1.426, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2185/0.2185, allocations: 44.91 MB / 358.8 MB, free: 6.289 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.002136/0.002136, allocations: 63.91 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3116, allocations: 65.47 MB / 0.557 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001586/0.3132, allocations: 496.8 kB / 0.5575 GB, free: 7.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.315, allocations: 1.423 MB / 0.5589 GB, free: 5.863 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.308e-05/0.3151, allocations: 0 / 0.5589 GB, free: 5.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.176e-05/0.3151, allocations: 0 / 0.5589 GB, free: 5.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.668e-05/0.3151, allocations: 0 / 0.5589 GB, free: 5.863 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006609/0.3158, allocations: 219.8 kB / 0.5591 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.452e-05/0.3158, allocations: 7.984 kB / 0.5591 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.849e-05/0.3158, allocations: 0 / 0.5591 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.083e-05/0.3159, allocations: 8 kB / 0.5591 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.26e-05/0.3159, allocations: 4 kB / 0.5591 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.092e-05/0.3159, allocations: 4 kB / 0.5591 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004465/0.3164, allocations: 279.6 kB / 0.5594 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.926e-06/0.3164, allocations: 0 / 0.5594 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.688e-05/0.3164, allocations: 7.938 kB / 0.5594 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.3166, allocations: 137.5 kB / 0.5595 GB, free: 5.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3166, allocations: 4 kB / 0.5595 GB, free: 5.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3166, allocations: 0 / 0.5595 GB, free: 5.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.3166, allocations: 0 / 0.5595 GB, free: 5.211 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.000352/0.317, allocations: 258.2 kB / 0.5598 GB, free: 4.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.317, allocations: 12.03 kB / 0.5598 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.821e-05/0.317, allocations: 34.75 kB / 0.5598 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.526e-05/0.3171, allocations: 4.922 kB / 0.5598 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.632e-05/0.3172, allocations: 110.5 kB / 0.5599 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-06/0.3172, allocations: 384 / 0.5599 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.3172, allocations: 8.375 kB / 0.5599 GB, free: 4.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.723e-05/0.3173, allocations: 29.83 kB / 0.56 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.3173, allocations: 3.938 kB / 0.56 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.3173, allocations: 4 kB / 0.56 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3173, allocations: 4 kB / 0.56 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.867e-05/0.3173, allocations: 3.938 kB / 0.56 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.3174, allocations: 124.8 kB / 0.5601 GB, free: 4.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.283e-05/0.3175, allocations: 18.56 kB / 0.5601 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.768e-05/0.3175, allocations: 8.953 kB / 0.5601 GB, free: 4.477 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.3175, allocations: 3.938 kB / 0.5601 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.3176, allocations: 38.5 kB / 0.5602 GB, free: 4.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.3176, allocations: 0 / 0.5602 GB, free: 4.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001235/0.3177, allocations: 45.62 kB / 0.5602 GB, free: 4.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.3177, allocations: 51.41 kB / 0.5602 GB, free: 4.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.947e-05/0.3178, allocations: 93.86 kB / 0.5603 GB, free: 4.211 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.3178, allocations: 25.7 kB / 0.5604 GB, free: 4.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.619e-05/0.3178, allocations: 80.14 kB / 0.5604 GB, free: 4.098 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.3179, allocations: 3.953 kB / 0.5604 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.3179, allocations: 25.95 kB / 0.5605 GB, free: 4.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.318, allocations: 310.8 kB / 0.5608 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.318, allocations: 0 / 0.5608 GB, free: 3.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.03e-05/0.318, allocations: 4 kB / 0.5608 GB, free: 3.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.24e-05/0.3181, allocations: 4.859 kB / 0.5608 GB, free: 3.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3181, allocations: 4 kB / 0.5608 GB, free: 3.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.589e-05/0.3181, allocations: 37.58 kB / 0.5608 GB, free: 3.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.3181, allocations: 8.094 kB / 0.5608 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3181, allocations: 11.97 kB / 0.5608 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.3182, allocations: 0 / 0.5608 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.955e-05/0.3182, allocations: 0 / 0.5608 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.3182, allocations: 0 / 0.5608 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.178e-05/0.3182, allocations: 0 / 0.5608 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.3182, allocations: 4 kB / 0.5608 GB, free: 3.668 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.124e-05/0.3183, allocations: 113.8 kB / 0.5609 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.367e-06/0.3183, allocations: 3.938 kB / 0.5609 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.3184, allocations: 48.78 kB / 0.561 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3184, allocations: 0 / 0.561 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3184, allocations: 4 kB / 0.561 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.3184, allocations: 0 / 0.561 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.318e-05/0.3185, allocations: 124.7 kB / 0.5611 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.3185, allocations: 4 kB / 0.5611 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.334e-06/0.3185, allocations: 3.938 kB / 0.5611 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.3185, allocations: 0 / 0.5611 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-06/0.3185, allocations: 4.031 kB / 0.5611 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.3185, allocations: 4 kB / 0.5611 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3185, allocations: 0 / 0.5611 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.855e-05/0.3186, allocations: 61.12 kB / 0.5612 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.187e-06/0.3186, allocations: 11.94 kB / 0.5612 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-06/0.3186, allocations: 0 / 0.5612 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.926e-05/0.3187, allocations: 0 / 0.5612 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.3187, allocations: 7.969 kB / 0.5612 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.3187, allocations: 4 kB / 0.5612 GB, free: 3.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.874e-05/0.3188, allocations: 79.22 kB / 0.5613 GB, free: 3.121 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3188, allocations: 0 / 0.5613 GB, free: 3.121 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000256/0.319, allocations: 43.92 kB / 0.5613 GB, free: 3.078 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.0005196/0.3195, allocations: 0.6359 MB / 0.5619 GB, free: 2.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.297e-05/0.3196, allocations: 4 kB / 0.562 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.3196, allocations: 4 kB / 0.562 GB, free: 2.402 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.353e-05/0.3196, allocations: 29.64 kB / 0.562 GB, free: 2.367 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.3198, allocations: 4 kB / 0.562 GB, free: 2.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003329/0.3201, allocations: 122.6 kB / 0.5621 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.3204, allocations: 0.673 MB / 0.5628 GB, free: 1.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.349e-05/0.3204, allocations: 4 kB / 0.5628 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.426e-05/0.3204, allocations: 7.438 kB / 0.5628 GB, free: 1.492 MB / 398.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3204, allocations: 0 / 0.5628 GB, free: 1.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.3476, allocations: 1.956 MB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.32, allocations: 6.984 kB / 0.5647 GB, free: 15.66 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.083007788984105]