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.001169/0.001169, allocations: 107.6 kB / 17.21 MB, free: 6.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.001211/0.001211, allocations: 194 kB / 18.12 MB, free: 5.383 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.345/1.345, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.2086/0.2086, allocations: 44.18 MB / 336.1 MB, free: 2.902 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 57.12 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09341, allocations: 60.84 MB / 468.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001676/0.09512, allocations: 0.5444 MB / 469.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.09698, allocations: 1.407 MB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.227e-05/0.09702, allocations: 0 / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.09705, allocations: 0 / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.518e-05/0.09709, allocations: 4 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.09765, allocations: 154.1 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.674e-05/0.0977, allocations: 7.938 kB / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.09775, allocations: 4 kB / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.064e-05/0.09777, allocations: 7.938 kB / 470.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.499e-05/0.09782, allocations: 11.97 kB / 470.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.09784, allocations: 0 / 470.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000423/0.09827, allocations: 259.7 kB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.0983, allocations: 7.984 kB / 471 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.09832, allocations: 0 / 471 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.09856, allocations: 147.6 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09858, allocations: 4 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.09858, allocations: 0 / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.0986, allocations: 3.938 kB / 471.2 MB, free: 12.16 MB / 350.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.0003541/0.09896, allocations: 335.6 kB / 471.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.09901, allocations: 8.031 kB / 471.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.383e-05/0.09905, allocations: 34.69 kB / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.574e-05/0.09908, allocations: 4.938 kB / 471.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.0992, allocations: 164.3 kB / 471.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.09921, allocations: 384 / 471.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.09923, allocations: 4.375 kB / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.835e-05/0.09932, allocations: 37.81 kB / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.912e-06/0.09934, allocations: 0 / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.09935, allocations: 0 / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.09936, allocations: 0 / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.312e-05/0.09939, allocations: 4 kB / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.09953, allocations: 149.7 kB / 471.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.62e-05/0.09958, allocations: 26.55 kB / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.602e-05/0.0996, allocations: 4.859 kB / 471.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-06/0.09962, allocations: 0 / 471.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.09965, allocations: 38.56 kB / 472 MB, free: 11.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.09966, allocations: 0 / 472 MB, free: 11.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001374/0.0998, allocations: 33.7 kB / 472 MB, free: 11.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.09984, allocations: 55.34 kB / 472.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.758e-05/0.09992, allocations: 102 kB / 472.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.09994, allocations: 25.7 kB / 472.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.09997, allocations: 80.14 kB / 472.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.1, allocations: 12.22 kB / 472.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.1, allocations: 9.719 kB / 472.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.934e-05/0.1001, allocations: 310.8 kB / 472.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.295e-05/0.1002, allocations: 4 kB / 472.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-06/0.1002, allocations: 0 / 472.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.108e-05/0.1002, allocations: 17.03 kB / 472.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1002, allocations: 0 / 472.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.241e-05/0.1003, allocations: 45.58 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.1003, allocations: 6.656 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1003, allocations: 0 / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.1003, allocations: 0 / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.414e-05/0.1004, allocations: 4 kB / 472.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.738e-06/0.1004, allocations: 0 / 472.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.392e-05/0.1004, allocations: 0 / 472.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.1004, allocations: 0 / 472.7 MB, free: 10.44 MB / 350.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.8e-05/0.1005, allocations: 117.8 kB / 472.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.222e-05/0.1005, allocations: 7.938 kB / 472.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.1006, allocations: 48.78 kB / 472.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1007, allocations: 3.938 kB / 472.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1007, allocations: 0 / 472.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1007, allocations: 8.016 kB / 472.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.817e-05/0.1008, allocations: 149.6 kB / 473 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.1008, allocations: 0 / 473 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.537e-06/0.1008, allocations: 3.938 kB / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1008, allocations: 3.938 kB / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1008, allocations: 0 / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1008, allocations: 3.984 kB / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1008, allocations: 4 kB / 473 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.352e-05/0.1009, allocations: 61.14 kB / 473.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.1009, allocations: 81.05 kB / 473.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.02e-05/0.101, allocations: 0 / 473.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.72e-05/0.101, allocations: 3.984 kB / 473.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.273e-05/0.1011, allocations: 4 kB / 473.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.1011, allocations: 0 / 473.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.208e-05/0.1011, allocations: 75.28 kB / 473.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.753e-06/0.1011, allocations: 0 / 473.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000264/0.1014, allocations: 47.94 kB / 473.3 MB, free: 9.727 MB / 350.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.0004971/0.1019, allocations: 0.646 MB / 473.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.609e-05/0.102, allocations: 4 kB / 473.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.102, allocations: 0 / 473.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.279e-05/0.102, allocations: 29.7 kB / 474 MB, free: 9.016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.1022, allocations: 8.156 kB / 474 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003599/0.1026, allocations: 120.6 kB / 474.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1029, allocations: 0.6809 MB / 474.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.17e-05/0.1029, allocations: 3.984 kB / 474.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.225e-05/0.1029, allocations: 7.438 kB / 474.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.103, allocations: 0 / 474.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01142/0.1144, allocations: 1.721 MB / 476.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.1146, allocations: 199.8 kB / 476.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/1.957, allocations: 4 kB / 476.7 MB, free: 6.238 MB / 350.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