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.00117/0.00117, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001267/0.001267, allocations: 183.8 kB / 18.71 MB, free: 4.34 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.389/1.389, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2127/0.2127, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 59.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3226, allocations: 60.83 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001655/0.3243, allocations: 488.3 kB / 0.5189 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.3259, allocations: 1.354 MB / 0.5202 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.481e-05/0.326, allocations: 0 / 0.5202 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.465e-05/0.326, allocations: 4 kB / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.406e-05/0.3261, allocations: 0 / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007884/0.3268, allocations: 228.1 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.195e-05/0.3269, allocations: 9.047 kB / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.734e-05/0.327, allocations: 3.078 kB / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.808e-05/0.327, allocations: 6.938 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.518e-05/0.327, allocations: 6.469 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.3271, allocations: 1.156 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006503/0.3277, allocations: 270.7 kB / 0.5207 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.454e-05/0.3277, allocations: 5.984 kB / 0.5207 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.287e-05/0.3278, allocations: 9.938 kB / 0.5207 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003531/0.3281, allocations: 139.2 kB / 0.5208 GB, free: 1.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3281, allocations: 0 / 0.5208 GB, free: 1.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3281, allocations: 0 / 0.5208 GB, free: 1.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3281, allocations: 1.094 kB / 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004133/0.3286, allocations: 335.5 kB / 0.5212 GB, free: 1.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.3286, allocations: 9.031 kB / 0.5212 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.512e-05/0.3287, allocations: 35.5 kB / 0.5212 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.3287, allocations: 1.969 kB / 0.5212 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.233e-05/0.3288, allocations: 167.2 kB / 0.5214 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.3288, allocations: 384 / 0.5214 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.3289, allocations: 1.719 kB / 0.5214 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.329, allocations: 38.02 kB / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.329, allocations: 1.312 kB / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.329, allocations: 0 / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.329, allocations: 0 / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.406e-05/0.329, allocations: 3.531 kB / 0.5214 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001274/0.3292, allocations: 150.7 kB / 0.5216 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.759e-05/0.3292, allocations: 20.66 kB / 0.5216 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.92e-05/0.3292, allocations: 7.531 kB / 0.5216 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.774e-06/0.3292, allocations: 3.938 kB / 0.5216 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.3293, allocations: 36.52 kB / 0.5216 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.3293, allocations: 0 / 0.5216 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001459/0.3294, allocations: 41.33 kB / 0.5217 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.3295, allocations: 56.14 kB / 0.5217 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.116e-05/0.3295, allocations: 94.08 kB / 0.5218 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.3295, allocations: 31.14 kB / 0.5218 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.564e-05/0.3296, allocations: 84.73 kB / 0.5219 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.3296, allocations: 7.719 kB / 0.5219 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.3296, allocations: 11.8 kB / 0.5219 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.052e-05/0.3297, allocations: 312.9 kB / 0.5222 GB, free: 244 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.332e-05/0.3297, allocations: 2.156 kB / 0.5222 GB, free: 244 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.498e-06/0.3297, allocations: 9.344 kB / 0.5222 GB, free: 236 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.88e-05/0.3298, allocations: 8.328 kB / 0.5223 GB, free: 228 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3298, allocations: 0 / 0.5223 GB, free: 228 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.389e-05/0.3298, allocations: 45.28 kB / 0.5223 GB, free: 184 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3299, allocations: 6.172 kB / 0.5223 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.3299, allocations: 1.188 kB / 0.5223 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.3299, allocations: 0 / 0.5223 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.367e-05/0.33, allocations: 2.453 kB / 0.5223 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.33, allocations: 5.406 kB / 0.5223 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.33, allocations: 0.8906 kB / 0.5223 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.33, allocations: 1.656 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 6.223e-05/0.3301, allocations: 106.4 kB / 0.5224 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.26e-05/0.3301, allocations: 8.969 kB / 0.5224 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.3302, allocations: 48.45 kB / 0.5225 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3303, allocations: 4.031 kB / 0.5225 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3303, allocations: 1.797 kB / 0.5225 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3303, allocations: 0 / 0.5225 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.3304, allocations: 146.7 kB / 0.5226 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.3305, allocations: 1.188 kB / 0.5226 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.464e-06/0.3305, allocations: 9.766 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3305, allocations: 0 / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.3305, allocations: 1.188 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3305, allocations: 0.6562 kB / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3305, allocations: 0 / 0.5226 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.3306, allocations: 76.08 kB / 0.5227 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.453e-05/0.3307, allocations: 81.61 kB / 0.5228 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.3307, allocations: 1.484 kB / 0.5228 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.091e-05/0.3308, allocations: 3.547 kB / 0.5228 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.421e-05/0.3308, allocations: 0 / 0.5228 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.3308, allocations: 2.672 kB / 0.5228 GB, free: 15.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.271e-05/0.3309, allocations: 84.92 kB / 0.5229 GB, free: 15.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3309, allocations: 0 / 0.5229 GB, free: 15.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005412/0.3314, allocations: 44.38 kB / 0.5229 GB, free: 15.54 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.0007139/0.3321, allocations: 0.6282 MB / 0.5235 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.005e-05/0.3322, allocations: 8.938 kB / 0.5235 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3322, allocations: 4.062 kB / 0.5235 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.716e-05/0.3323, allocations: 29.97 kB / 0.5236 GB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001675/0.3325, allocations: 5.031 kB / 0.5236 GB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004218/0.3329, allocations: 122.5 kB / 0.5237 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.3331, allocations: 0.6752 MB / 0.5243 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.783e-05/0.3332, allocations: 1.375 kB / 0.5243 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.268e-05/0.3332, allocations: 9.391 kB / 0.5244 GB, free: 14.05 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3332, allocations: 8 kB / 0.5244 GB, free: 14.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.3528, allocations: 1.856 MB / 0.5262 GB, free: 13.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.891, allocations: 6.594 kB / 0.5262 GB, free: 13.59 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 & /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 --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) 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) Reference file matches