Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.001848/0.001848, 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.002303/0.002303, allocations: 217 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.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2148/0.2148, allocations: 44.92 MB / 358.8 MB, free: 6.281 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.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",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.002174/0.002174, allocations: 71.86 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3119, allocations: 65.47 MB / 0.557 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001564/0.3135, allocations: 0.4983 MB / 0.5575 GB, free: 7.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.3154, allocations: 1.412 MB / 0.5589 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.293e-05/0.3154, allocations: 0 / 0.5589 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.75e-05/0.3154, allocations: 3.938 kB / 0.5589 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.398e-05/0.3155, allocations: 0 / 0.5589 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006575/0.3161, allocations: 211.8 kB / 0.5591 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.094e-05/0.3162, allocations: 19.92 kB / 0.5591 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.635e-05/0.3162, allocations: 0 / 0.5591 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.677e-05/0.3162, allocations: 4 kB / 0.5591 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.733e-05/0.3163, allocations: 3.984 kB / 0.5591 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.338e-05/0.3163, allocations: 4 kB / 0.5591 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004645/0.3167, allocations: 275.6 kB / 0.5594 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.025e-05/0.3168, allocations: 0 / 0.5594 GB, free: 5.363 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.747e-05/0.3168, allocations: 7.938 kB / 0.5594 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.317, allocations: 141.5 kB / 0.5595 GB, free: 5.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.317, allocations: 0 / 0.5595 GB, free: 5.219 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.317, allocations: 4 kB / 0.5595 GB, free: 5.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.317, allocations: 0 / 0.5595 GB, free: 5.215 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000361/0.3174, allocations: 258.3 kB / 0.5598 GB, free: 4.934 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3174, allocations: 12.02 kB / 0.5598 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.3175, allocations: 38.69 kB / 0.5598 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.429e-05/0.3175, allocations: 4.891 kB / 0.5598 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.216e-05/0.3176, allocations: 102.5 kB / 0.5599 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.3176, allocations: 4.375 kB / 0.5599 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.3176, allocations: 8.312 kB / 0.5599 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.3177, allocations: 41.81 kB / 0.56 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3177, allocations: 3.938 kB / 0.56 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.3178, allocations: 0 / 0.56 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.3178, allocations: 4 kB / 0.56 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.59e-05/0.3178, allocations: 12 kB / 0.56 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003483/0.3181, allocations: 219.9 kB / 0.5602 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.748e-05/0.3182, allocations: 14.58 kB / 0.5602 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.71e-05/0.3182, allocations: 12.86 kB / 0.5602 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.3182, allocations: 4.062 kB / 0.5602 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3182, allocations: 30.56 kB / 0.5603 GB, free: 4.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3182, allocations: 0 / 0.5603 GB, free: 4.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001394/0.3184, allocations: 37.62 kB / 0.5603 GB, free: 4.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.3184, allocations: 55.41 kB / 0.5603 GB, free: 4.219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.029e-05/0.3185, allocations: 97.98 kB / 0.5604 GB, free: 4.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.3185, allocations: 25.7 kB / 0.5605 GB, free: 4.082 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.913e-05/0.3186, allocations: 88.09 kB / 0.5605 GB, free: 3.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.504e-06/0.3186, allocations: 3.953 kB / 0.5605 GB, free: 3.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.3186, allocations: 17.72 kB / 0.5606 GB, free: 3.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3188, allocations: 318.8 kB / 0.5609 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.085e-05/0.3188, allocations: 0 / 0.5609 GB, free: 3.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.646e-05/0.3188, allocations: 18.7 kB / 0.5609 GB, free: 3.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.325e-05/0.3188, allocations: 34.52 kB / 0.5609 GB, free: 3.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3188, allocations: 0 / 0.5609 GB, free: 3.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.407e-05/0.3189, allocations: 49.62 kB / 0.561 GB, free: 3.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3189, allocations: 4 kB / 0.561 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.319, allocations: 4 kB / 0.561 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.319, allocations: 4.188 kB / 0.561 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.637e-05/0.319, allocations: 7.984 kB / 0.561 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.319, allocations: 3.984 kB / 0.561 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.76e-05/0.319, allocations: 4 kB / 0.561 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.319, allocations: 0 / 0.561 GB, free: 3.492 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.158e-05/0.3191, allocations: 117.7 kB / 0.5611 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.186e-05/0.3191, allocations: 0 / 0.5611 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.3193, allocations: 52.78 kB / 0.5612 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3193, allocations: 0 / 0.5612 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.3193, allocations: 0 / 0.5612 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.3193, allocations: 0 / 0.5612 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.3194, allocations: 124.6 kB / 0.5613 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3194, allocations: 0 / 0.5613 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.3194, allocations: 0 / 0.5613 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3194, allocations: 3.984 kB / 0.5613 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.3194, allocations: 7.938 kB / 0.5613 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.3194, allocations: 0 / 0.5613 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3194, allocations: 4.031 kB / 0.5613 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.3195, allocations: 135.4 kB / 0.5614 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-06/0.3196, allocations: 4 kB / 0.5614 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.3196, allocations: 4 kB / 0.5614 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.884e-05/0.3196, allocations: 3.984 kB / 0.5614 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.3196, allocations: 4 kB / 0.5614 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.3196, allocations: 0 / 0.5614 GB, free: 2.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.068e-05/0.3197, allocations: 83.31 kB / 0.5615 GB, free: 2.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3197, allocations: 0 / 0.5615 GB, free: 2.879 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002851/0.32, allocations: 39.94 kB / 0.5616 GB, free: 2.84 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.0005711/0.3205, allocations: 0.7045 MB / 0.5622 GB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.013e-05/0.3206, allocations: 20.06 kB / 0.5623 GB, free: 2.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.3206, allocations: 0 / 0.5623 GB, free: 2.086 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.3207, allocations: 29.7 kB / 0.5623 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.3209, allocations: 0 / 0.5623 GB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003768/0.3212, allocations: 130.5 kB / 0.5624 GB, free: 1.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3215, allocations: 0.6768 MB / 0.5631 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.142e-05/0.3216, allocations: 4.25 kB / 0.5631 GB, free: 1.176 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.142e-05/0.3216, allocations: 7.438 kB / 0.5631 GB, free: 1.168 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3216, allocations: 0 / 0.5631 GB, free: 1.168 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.3476, allocations: 1.957 MB / 0.565 GB, free: 15.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.31, allocations: 0 / 0.565 GB, free: 15.34 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.116742328973487]