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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001191, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009973/0.0009974, allocations: 187.9 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2109/0.2109, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 60.14 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3243, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001557/0.3259, allocations: 0.4944 MB / 0.5189 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.3277, allocations: 1.348 MB / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.432e-05/0.3277, allocations: 0 / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.282e-05/0.3277, allocations: 3.938 kB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.766e-05/0.3278, allocations: 1.188 kB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006824/0.3284, allocations: 218.3 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.666e-05/0.3285, allocations: 9.719 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.328e-05/0.3286, allocations: 7.156 kB / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.782e-05/0.3286, allocations: 7.312 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.374e-05/0.3286, allocations: 6.016 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3286, allocations: 1.312 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004405/0.3291, allocations: 269.8 kB / 0.5207 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.232e-05/0.3291, allocations: 6.266 kB / 0.5207 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.957e-05/0.3291, allocations: 2.344 kB / 0.5207 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.3294, allocations: 142.9 kB / 0.5208 GB, free: 1.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3294, allocations: 4.562 kB / 0.5208 GB, free: 1.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3294, allocations: 1.312 kB / 0.5208 GB, free: 1.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3294, allocations: 0 / 0.5208 GB, free: 1.809 MB / 382.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.0002912/0.3297, allocations: 335.4 kB / 0.5212 GB, free: 1.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.3297, allocations: 9.516 kB / 0.5212 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.259e-05/0.3298, allocations: 32.14 kB / 0.5212 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.3298, allocations: 5.844 kB / 0.5212 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.979e-05/0.3298, allocations: 161.6 kB / 0.5214 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.3299, allocations: 1.594 kB / 0.5214 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.3299, allocations: 1.438 kB / 0.5214 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.33, allocations: 46.44 kB / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.33, allocations: 0 / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.33, allocations: 9.578 kB / 0.5214 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.33, allocations: 1.25 kB / 0.5214 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.291e-05/0.3301, allocations: 5.453 kB / 0.5214 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002978/0.3304, allocations: 243.5 kB / 0.5217 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.157e-05/0.3304, allocations: 24.58 kB / 0.5217 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.525e-05/0.3305, allocations: 6.484 kB / 0.5217 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.3305, allocations: 0 / 0.5217 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.3305, allocations: 32.2 kB / 0.5217 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.3305, allocations: 1.125 kB / 0.5217 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001393/0.3306, allocations: 40.7 kB / 0.5218 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.3307, allocations: 52.69 kB / 0.5218 GB, free: 0.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.599e-05/0.3307, allocations: 104.5 kB / 0.5219 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.516e-06/0.3308, allocations: 30.3 kB / 0.5219 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.598e-05/0.3308, allocations: 85.98 kB / 0.522 GB, free: 492 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.352e-06/0.3308, allocations: 5.125 kB / 0.522 GB, free: 488 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.3308, allocations: 14.33 kB / 0.522 GB, free: 472 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.214e-05/0.3309, allocations: 315.4 kB / 0.5223 GB, free: 148 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.371e-05/0.3309, allocations: 6.766 kB / 0.5223 GB, free: 144 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.097e-05/0.3309, allocations: 23.59 kB / 0.5224 GB, free: 116 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.036e-05/0.331, allocations: 28.83 kB / 0.5224 GB, free: 84 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.331, allocations: 1.094 kB / 0.5224 GB, free: 84 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.535e-05/0.331, allocations: 48.83 kB / 0.5224 GB, free: 44 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3311, allocations: 5.344 kB / 0.5225 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.3311, allocations: 1.156 kB / 0.5225 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3311, allocations: 5.688 kB / 0.5225 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.157e-05/0.3311, allocations: 6.266 kB / 0.5225 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3312, allocations: 1.406 kB / 0.5225 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.655e-05/0.3312, allocations: 1.547 kB / 0.5225 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.3312, allocations: 5.188 kB / 0.5225 GB, free: 36 kB / 382.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.939e-05/0.3313, allocations: 116.5 kB / 0.5226 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.3313, allocations: 2.062 kB / 0.5226 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.3314, allocations: 55.05 kB / 0.5226 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3314, allocations: 0 / 0.5226 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3314, allocations: 1.125 kB / 0.5226 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3315, allocations: 0.6562 kB / 0.5226 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.3316, allocations: 150.2 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.3316, allocations: 0.9375 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.625e-06/0.3316, allocations: 1.703 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.3316, allocations: 0 / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.3316, allocations: 1.906 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3317, allocations: 4.547 kB / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3317, allocations: 0 / 0.5228 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.774e-05/0.3318, allocations: 145.3 kB / 0.5229 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.3318, allocations: 78.56 kB / 0.523 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.3318, allocations: 0.9375 kB / 0.523 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.671e-05/0.3319, allocations: 1.344 kB / 0.523 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.695e-05/0.3319, allocations: 1.953 kB / 0.523 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.3319, allocations: 5.375 kB / 0.523 GB, free: 15.42 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.937e-05/0.3319, allocations: 81.05 kB / 0.5231 GB, free: 15.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.332, allocations: 0 / 0.5231 GB, free: 15.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.3323, allocations: 40.48 kB / 0.5231 GB, free: 15.34 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.0004848/0.3327, allocations: 0.7079 MB / 0.5238 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.792e-05/0.3328, allocations: 13.44 kB / 0.5238 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3328, allocations: 0 / 0.5238 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.904e-05/0.3329, allocations: 28.77 kB / 0.5239 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.3331, allocations: 9.062 kB / 0.5239 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/0.3335, allocations: 121.5 kB / 0.524 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.3337, allocations: 0.6803 MB / 0.5246 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.378e-05/0.3337, allocations: 6.062 kB / 0.5247 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.3337, allocations: 12.44 kB / 0.5247 GB, free: 13.77 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3338, allocations: 1.156 kB / 0.5247 GB, free: 13.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.3515, allocations: 1.85 MB / 0.5265 GB, free: 13.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.439/7.791, allocations: 10.25 kB / 0.5265 GB, free: 13.29 MB / 398.1 MB (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 --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) 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) Reference file matches