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.001245/0.001245, allocations: 110.4 kB / 17.78 MB, free: 5.285 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.001112/0.001112, allocations: 183.1 kB / 18.7 MB, free: 4.367 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.263/1.263, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.1885/0.1885, allocations: 44.19 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.89 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3202, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001444/0.3217, allocations: 496.7 kB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.3232, allocations: 1.36 MB / 0.5202 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.56e-05/0.3233, allocations: 0 / 0.5202 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.299e-05/0.3233, allocations: 1.438 kB / 0.5202 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.087e-05/0.3233, allocations: 3.938 kB / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.324, allocations: 214.8 kB / 0.5204 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.984e-05/0.3241, allocations: 10.25 kB / 0.5204 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.3241, allocations: 1.844 kB / 0.5204 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.923e-05/0.3241, allocations: 11.47 kB / 0.5204 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.901e-05/0.3242, allocations: 7.344 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.3242, allocations: 3.938 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004483/0.3247, allocations: 266.8 kB / 0.5207 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.33e-05/0.3247, allocations: 5.641 kB / 0.5207 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.922e-05/0.3247, allocations: 1.672 kB / 0.5207 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.325, allocations: 144.3 kB / 0.5208 GB, free: 1.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.325, allocations: 0.7031 kB / 0.5208 GB, free: 1.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.325, allocations: 0 / 0.5208 GB, free: 1.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.325, allocations: 0 / 0.5208 GB, free: 1.828 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.0002857/0.3253, allocations: 342.3 kB / 0.5212 GB, free: 1.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.3253, allocations: 9.125 kB / 0.5212 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.36e-05/0.3253, allocations: 31.75 kB / 0.5212 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.267e-05/0.3254, allocations: 2.609 kB / 0.5212 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.858e-05/0.3254, allocations: 165.5 kB / 0.5214 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.3254, allocations: 1.5 kB / 0.5214 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.543e-06/0.3255, allocations: 384 / 0.5214 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.333e-05/0.3255, allocations: 34.62 kB / 0.5214 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.3255, allocations: 5.031 kB / 0.5214 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.3256, allocations: 0.5625 kB / 0.5214 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.3256, allocations: 1.062 kB / 0.5214 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.793e-05/0.3256, allocations: 3.062 kB / 0.5214 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.863e-05/0.3257, allocations: 150 kB / 0.5216 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.036e-05/0.3257, allocations: 21.69 kB / 0.5216 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.302e-05/0.3257, allocations: 6.078 kB / 0.5216 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.3258, allocations: 4 kB / 0.5216 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.3258, allocations: 36.44 kB / 0.5216 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3258, allocations: 0 / 0.5216 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001064/0.3259, allocations: 42.14 kB / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.323e-05/0.3259, allocations: 52.41 kB / 0.5217 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.074e-05/0.326, allocations: 93.31 kB / 0.5218 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.633e-06/0.326, allocations: 34.58 kB / 0.5218 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.238e-05/0.326, allocations: 86.72 kB / 0.5219 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.326, allocations: 6.25 kB / 0.5219 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.326, allocations: 11.97 kB / 0.5219 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.68e-05/0.3261, allocations: 312.8 kB / 0.5222 GB, free: 264 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.3261, allocations: 1.125 kB / 0.5222 GB, free: 264 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.446e-06/0.3261, allocations: 2.828 kB / 0.5222 GB, free: 264 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.033e-05/0.3262, allocations: 8.047 kB / 0.5222 GB, free: 256 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3262, allocations: 4 kB / 0.5222 GB, free: 252 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.777e-05/0.3262, allocations: 54.47 kB / 0.5223 GB, free: 200 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.3262, allocations: 4.531 kB / 0.5223 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.3262, allocations: 1.156 kB / 0.5223 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.3263, allocations: 0.8438 kB / 0.5223 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.356e-05/0.3263, allocations: 6.188 kB / 0.5223 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.3263, allocations: 0.6562 kB / 0.5223 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.227e-05/0.3263, allocations: 1.219 kB / 0.5223 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3263, allocations: 0 / 0.5223 GB, free: 196 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 3.756e-05/0.3264, allocations: 113 kB / 0.5224 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-06/0.3264, allocations: 5.094 kB / 0.5224 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.325e-05/0.3265, allocations: 47.64 kB / 0.5225 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3265, allocations: 0.6562 kB / 0.5225 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3265, allocations: 1.219 kB / 0.5225 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-06/0.3265, allocations: 0 / 0.5225 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.905e-05/0.3266, allocations: 147.8 kB / 0.5226 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3266, allocations: 4.031 kB / 0.5226 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.776e-06/0.3267, allocations: 6.031 kB / 0.5226 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.3267, allocations: 0 / 0.5226 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.3267, allocations: 1.156 kB / 0.5226 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3267, allocations: 0.7031 kB / 0.5226 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3267, allocations: 3.938 kB / 0.5226 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.587e-05/0.3267, allocations: 63.27 kB / 0.5227 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.12e-05/0.3268, allocations: 82.91 kB / 0.5228 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.065e-05/0.3268, allocations: 6.031 kB / 0.5228 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.007e-05/0.3269, allocations: 1.578 kB / 0.5228 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.728e-06/0.3269, allocations: 1.781 kB / 0.5228 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.3269, allocations: 1.281 kB / 0.5228 GB, free: 15.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.859e-05/0.3269, allocations: 82.48 kB / 0.5229 GB, free: 15.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3269, allocations: 0 / 0.5229 GB, free: 15.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000254/0.3272, allocations: 43.69 kB / 0.5229 GB, free: 15.57 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.0004518/0.3277, allocations: 0.6388 MB / 0.5235 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.174e-05/0.3277, allocations: 4.688 kB / 0.5235 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.3277, allocations: 1.031 kB / 0.5235 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.232e-05/0.3278, allocations: 28.67 kB / 0.5236 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.3279, allocations: 7 kB / 0.5236 GB, free: 14.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000331/0.3283, allocations: 125 kB / 0.5237 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/0.3285, allocations: 0.6763 MB / 0.5243 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.614e-05/0.3285, allocations: 1.766 kB / 0.5243 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.48e-05/0.3285, allocations: 8.5 kB / 0.5243 GB, free: 14.07 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3285, allocations: 7.875 kB / 0.5244 GB, free: 14.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.346, allocations: 1.848 MB / 0.5262 GB, free: 13.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.359/7.705, allocations: 9.875 kB / 0.5262 GB, free: 13.61 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