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.001788/0.001788, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.00223/0.00223, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.2173/0.2173, allocations: 44.91 MB / 359.6 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.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",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.002075/0.002075, allocations: 63.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.312, allocations: 65.46 MB / 0.5578 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001663/0.3137, allocations: 497.2 kB / 0.5582 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.3157, allocations: 1.423 MB / 0.5596 GB, free: 5.863 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.226e-05/0.3157, allocations: 4 kB / 0.5596 GB, free: 5.859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.3157, allocations: 0 / 0.5596 GB, free: 5.859 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.86e-05/0.3157, allocations: 0 / 0.5596 GB, free: 5.859 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006985/0.3164, allocations: 223.2 kB / 0.5599 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.9e-05/0.3165, allocations: 8 kB / 0.5599 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.607e-05/0.3165, allocations: 0 / 0.5599 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.951e-05/0.3165, allocations: 4 kB / 0.5599 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.208e-05/0.3166, allocations: 3.984 kB / 0.5599 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.3166, allocations: 4 kB / 0.5599 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000465/0.3171, allocations: 275.6 kB / 0.5601 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.385e-05/0.3171, allocations: 7.938 kB / 0.5601 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.018e-05/0.3171, allocations: 0 / 0.5601 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002578/0.3174, allocations: 149.5 kB / 0.5603 GB, free: 5.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.3174, allocations: 0 / 0.5603 GB, free: 5.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3174, allocations: 0 / 0.5603 GB, free: 5.203 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.3174, allocations: 0 / 0.5603 GB, free: 5.203 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.0003655/0.3177, allocations: 258.3 kB / 0.5605 GB, free: 4.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.3178, allocations: 12.03 kB / 0.5605 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.762e-05/0.3178, allocations: 192 / 0.5605 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.969e-05/0.3178, allocations: 34.75 kB / 0.5606 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.3179, allocations: 4.891 kB / 0.5606 GB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.193e-05/0.3179, allocations: 106.5 kB / 0.5607 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.3179, allocations: 8.312 kB / 0.5607 GB, free: 4.727 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.318, allocations: 384 / 0.5607 GB, free: 4.727 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.3181, allocations: 41.62 kB / 0.5607 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.3181, allocations: 0 / 0.5607 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3181, allocations: 4 kB / 0.5607 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3181, allocations: 0 / 0.5607 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.363e-05/0.3181, allocations: 8 kB / 0.5607 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.3185, allocations: 219.9 kB / 0.561 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.261e-05/0.3185, allocations: 18.52 kB / 0.561 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.893e-05/0.3185, allocations: 8.922 kB / 0.561 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.3185, allocations: 0 / 0.561 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.3186, allocations: 34.56 kB / 0.561 GB, free: 4.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 6.101e-06/0.3186, allocations: 7.984 kB / 0.561 GB, free: 4.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000156/0.3187, allocations: 37.69 kB / 0.5611 GB, free: 4.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.3188, allocations: 51.41 kB / 0.5611 GB, free: 4.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.3189, allocations: 93.86 kB / 0.5612 GB, free: 4.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.3189, allocations: 33.64 kB / 0.5612 GB, free: 4.074 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.3189, allocations: 84.09 kB / 0.5613 GB, free: 3.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.576e-06/0.3189, allocations: 7.938 kB / 0.5613 GB, free: 3.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.319, allocations: 13.97 kB / 0.5613 GB, free: 3.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3191, allocations: 322.8 kB / 0.5616 GB, free: 3.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.668e-05/0.3191, allocations: 4 kB / 0.5616 GB, free: 3.633 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.717e-05/0.3191, allocations: 14.58 kB / 0.5617 GB, free: 3.609 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.992e-05/0.3192, allocations: 38.44 kB / 0.5617 GB, free: 3.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3192, allocations: 4 kB / 0.5617 GB, free: 3.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.74e-05/0.3193, allocations: 49.64 kB / 0.5617 GB, free: 3.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3193, allocations: 8 kB / 0.5617 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3193, allocations: 0 / 0.5617 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.3193, allocations: 0 / 0.5617 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.053e-05/0.3194, allocations: 7.984 kB / 0.5618 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.3194, allocations: 4 kB / 0.5618 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.3194, allocations: 0 / 0.5618 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.3194, allocations: 0 / 0.5618 GB, free: 3.484 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.582e-05/0.3195, allocations: 121.8 kB / 0.5619 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.26e-05/0.3195, allocations: 0 / 0.5619 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.3196, allocations: 52.72 kB / 0.5619 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3196, allocations: 0 / 0.5619 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3196, allocations: 0 / 0.5619 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3196, allocations: 0 / 0.5619 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001521/0.3198, allocations: 128.7 kB / 0.562 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3198, allocations: 4.031 kB / 0.5621 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.3198, allocations: 0 / 0.5621 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3198, allocations: 4 kB / 0.5621 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.531e-06/0.3198, allocations: 0 / 0.5621 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3198, allocations: 0 / 0.5621 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3198, allocations: 0 / 0.5621 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.3199, allocations: 131.5 kB / 0.5622 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.118e-05/0.3199, allocations: 7.984 kB / 0.5622 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.3199, allocations: 4.031 kB / 0.5622 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-05/0.32, allocations: 4 kB / 0.5622 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.127e-05/0.32, allocations: 0 / 0.5622 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.32, allocations: 3.938 kB / 0.5622 GB, free: 2.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.636e-05/0.32, allocations: 83.28 kB / 0.5623 GB, free: 2.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.32, allocations: 0 / 0.5623 GB, free: 2.871 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.3203, allocations: 39.92 kB / 0.5623 GB, free: 2.832 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.0005936/0.3209, allocations: 0.7046 MB / 0.563 GB, free: 2.098 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.517e-05/0.321, allocations: 11.94 kB / 0.563 GB, free: 2.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.321, allocations: 4 kB / 0.563 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.033e-05/0.321, allocations: 25.7 kB / 0.563 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.0002087/0.3213, allocations: 4 kB / 0.5631 GB, free: 2.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004031/0.3217, allocations: 134.8 kB / 0.5632 GB, free: 1.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.322, allocations: 0.6729 MB / 0.5638 GB, free: 1.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.147e-05/0.322, allocations: 3.938 kB / 0.5638 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.322, allocations: 11.44 kB / 0.5639 GB, free: 1.16 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.322, allocations: 0 / 0.5639 GB, free: 1.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/0.3426, allocations: 1.996 MB / 0.5658 GB, free: 15.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.49, allocations: 8.062 kB / 0.5658 GB, free: 15.3 MB / 414.1 MB " [Timeout remaining time 648] (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.488294254988432]