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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.001259/0.001259, allocations: 183.8 kB / 18.72 MB, free: 4.336 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.414/1.414, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2138/0.2138, allocations: 44.19 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 63.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3328, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001475/0.3343, allocations: 0.4926 MB / 0.5189 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.3358, allocations: 1.353 MB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.559e-05/0.3359, allocations: 0 / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.3359, allocations: 0 / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.33e-05/0.3359, allocations: 9.156 kB / 0.5202 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.3366, allocations: 215 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.952e-05/0.3367, allocations: 9.156 kB / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.167e-05/0.3367, allocations: 6.672 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.71e-05/0.3367, allocations: 7.188 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.45e-05/0.3368, allocations: 4.125 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.3368, allocations: 0 / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004424/0.3372, allocations: 274.4 kB / 0.5207 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.554e-05/0.3373, allocations: 1.062 kB / 0.5207 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.161e-05/0.3373, allocations: 10.09 kB / 0.5207 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.3376, allocations: 134.4 kB / 0.5208 GB, free: 1.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.3376, allocations: 1.219 kB / 0.5208 GB, free: 1.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3376, allocations: 4 kB / 0.5209 GB, free: 1.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3376, allocations: 0 / 0.5209 GB, free: 1.812 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003298/0.3379, allocations: 335.1 kB / 0.5212 GB, free: 1.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.338, allocations: 10.55 kB / 0.5212 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.499e-05/0.338, allocations: 30.75 kB / 0.5212 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.317e-05/0.338, allocations: 2.812 kB / 0.5212 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.823e-05/0.3381, allocations: 170.1 kB / 0.5214 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.3381, allocations: 5.438 kB / 0.5214 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.3381, allocations: 384 / 0.5214 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.617e-05/0.3382, allocations: 39.47 kB / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3382, allocations: 0 / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.3383, allocations: 1.344 kB / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3383, allocations: 0 / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.013e-05/0.3383, allocations: 2.562 kB / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.676e-05/0.3384, allocations: 150.6 kB / 0.5216 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.154e-05/0.3384, allocations: 20.92 kB / 0.5216 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.502e-05/0.3384, allocations: 6.75 kB / 0.5216 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.3385, allocations: 5.125 kB / 0.5216 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.3385, allocations: 40.23 kB / 0.5216 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3385, allocations: 0 / 0.5216 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001225/0.3386, allocations: 33.38 kB / 0.5217 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.3386, allocations: 53.42 kB / 0.5217 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.42e-05/0.3387, allocations: 97.2 kB / 0.5218 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.344e-06/0.3387, allocations: 26.75 kB / 0.5218 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.236e-05/0.3387, allocations: 89.36 kB / 0.5219 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.3387, allocations: 3.984 kB / 0.5219 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.3388, allocations: 13.02 kB / 0.5219 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.113e-05/0.3388, allocations: 315.9 kB / 0.5222 GB, free: 244 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.063e-05/0.3388, allocations: 1.438 kB / 0.5222 GB, free: 244 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.646e-06/0.3388, allocations: 2.781 kB / 0.5222 GB, free: 244 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.293e-05/0.3389, allocations: 16.2 kB / 0.5223 GB, free: 228 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.3389, allocations: 4.062 kB / 0.5223 GB, free: 224 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.792e-05/0.3389, allocations: 37.78 kB / 0.5223 GB, free: 188 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.339, allocations: 8.172 kB / 0.5223 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.339, allocations: 1.25 kB / 0.5223 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.339, allocations: 0 / 0.5223 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.205e-05/0.339, allocations: 2.266 kB / 0.5223 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.339, allocations: 1.188 kB / 0.5223 GB, free: 188 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.353e-05/0.3391, allocations: 8.453 kB / 0.5223 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.3391, allocations: 1.469 kB / 0.5223 GB, free: 180 kB / 382.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 4.093e-05/0.3391, allocations: 111.9 kB / 0.5224 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.076e-05/0.3391, allocations: 13.84 kB / 0.5224 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.802e-05/0.3392, allocations: 47.12 kB / 0.5225 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3392, allocations: 1.5 kB / 0.5225 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3393, allocations: 0 / 0.5225 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3393, allocations: 0.5156 kB / 0.5225 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001556/0.3394, allocations: 151.1 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.3394, allocations: 1.031 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.416e-06/0.3394, allocations: 4.641 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3395, allocations: 1.125 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.3395, allocations: 0 / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3395, allocations: 2.016 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3395, allocations: 0 / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.342e-05/0.3396, allocations: 63.64 kB / 0.5227 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-05/0.3396, allocations: 85.78 kB / 0.5228 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.073e-05/0.3396, allocations: 1.156 kB / 0.5228 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.559e-05/0.3397, allocations: 3.969 kB / 0.5228 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.312e-05/0.3397, allocations: 0 / 0.5228 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.3397, allocations: 5.984 kB / 0.5228 GB, free: 15.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.214e-05/0.3398, allocations: 81.75 kB / 0.5229 GB, free: 15.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3398, allocations: 0 / 0.5229 GB, free: 15.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.3401, allocations: 39.22 kB / 0.5229 GB, free: 15.55 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.0005598/0.3406, allocations: 0.6363 MB / 0.5235 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.623e-05/0.3407, allocations: 5.328 kB / 0.5235 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3407, allocations: 0 / 0.5235 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.685e-05/0.3408, allocations: 32.98 kB / 0.5236 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.3409, allocations: 3.328 kB / 0.5236 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003388/0.3413, allocations: 127.6 kB / 0.5237 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.3416, allocations: 0.6764 MB / 0.5244 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.478e-05/0.3416, allocations: 5.156 kB / 0.5244 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.305e-05/0.3416, allocations: 8.406 kB / 0.5244 GB, free: 14.05 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3416, allocations: 0 / 0.5244 GB, free: 14.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.3651, allocations: 1.847 MB / 0.5262 GB, free: 13.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.655/8.02, allocations: 6.031 kB / 0.5262 GB, free: 13.58 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.csv","/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) Reference file matches