Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001101/0.001101, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2125/0.2125, allocations: 46.1 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 71.5 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09727, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001603/0.09891, allocations: 494.8 kB / 480.6 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.1006, allocations: 1.407 MB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.962e-05/0.1006, allocations: 0 / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.328e-05/0.1007, allocations: 0 / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.992e-05/0.1007, allocations: 4 kB / 482 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006774/0.1014, allocations: 227.4 kB / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.285e-05/0.1014, allocations: 15.92 kB / 482.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.621e-05/0.1015, allocations: 0 / 482.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.624e-05/0.1015, allocations: 4 kB / 482.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.299e-05/0.1015, allocations: 0 / 482.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.1016, allocations: 0 / 482.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004125/0.102, allocations: 283.6 kB / 482.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.112e-05/0.102, allocations: 0 / 482.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.297e-05/0.102, allocations: 15.92 kB / 482.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.1023, allocations: 143.7 kB / 482.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1023, allocations: 0 / 482.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1023, allocations: 0 / 482.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1023, allocations: 0 / 482.7 MB, free: 2.605 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.0003361/0.1026, allocations: 331.6 kB / 483 MB, free: 2.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1027, allocations: 12.03 kB / 483 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.1027, allocations: 30.75 kB / 483.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.453e-05/0.1028, allocations: 4.875 kB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.1029, allocations: 164.3 kB / 483.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.1029, allocations: 4.375 kB / 483.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-06/0.1029, allocations: 4.375 kB / 483.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.63e-05/0.103, allocations: 41.75 kB / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-06/0.103, allocations: 0 / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.103, allocations: 0 / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.103, allocations: 4 kB / 483.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.907e-05/0.1031, allocations: 0 / 483.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.1032, allocations: 149.7 kB / 483.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.545e-05/0.1032, allocations: 22.58 kB / 483.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.98e-05/0.1033, allocations: 8.922 kB / 483.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-06/0.1033, allocations: 0 / 483.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.1033, allocations: 38.44 kB / 483.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1033, allocations: 3.938 kB / 483.5 MB, free: 1.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001209/0.1034, allocations: 37.69 kB / 483.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.1035, allocations: 51.41 kB / 483.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.139e-05/0.1036, allocations: 102 kB / 483.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1036, allocations: 25.7 kB / 483.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.51e-05/0.1036, allocations: 80.14 kB / 483.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.1036, allocations: 288 / 483.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.1037, allocations: 13.72 kB / 483.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1038, allocations: 314.8 kB / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.1038, allocations: 3.984 kB / 484.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-06/0.1038, allocations: 0 / 484.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.478e-05/0.1038, allocations: 16.98 kB / 484.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1038, allocations: 0 / 484.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.88e-05/0.1039, allocations: 37.64 kB / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.1039, allocations: 4 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1039, allocations: 0 / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.104, allocations: 4 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.31e-05/0.104, allocations: 0 / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.104, allocations: 0 / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.104, allocations: 11.92 kB / 484.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.932e-06/0.1041, allocations: 4.031 kB / 484.2 MB, free: 0.8789 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.47e-05/0.1041, allocations: 113.8 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.005e-05/0.1041, allocations: 3.938 kB / 484.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.1043, allocations: 44.75 kB / 484.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.1043, allocations: 0 / 484.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1043, allocations: 4.031 kB / 484.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.1043, allocations: 4 kB / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.325e-05/0.1044, allocations: 149.7 kB / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1044, allocations: 7.922 kB / 484.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.745e-06/0.1044, allocations: 3.938 kB / 484.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1044, allocations: 4 kB / 484.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.1044, allocations: 0 / 484.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1044, allocations: 0 / 484.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1044, allocations: 0 / 484.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.946e-05/0.1045, allocations: 64.98 kB / 484.6 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.1046, allocations: 85.05 kB / 484.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.1046, allocations: 7.922 kB / 484.7 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.362e-05/0.1046, allocations: 4 kB / 484.7 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.02e-05/0.1047, allocations: 0 / 484.7 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.1047, allocations: 0 / 484.7 MB, free: 300 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.295e-05/0.1047, allocations: 79.28 kB / 484.8 MB, free: 220 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1047, allocations: 0 / 484.8 MB, free: 220 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000246/0.105, allocations: 48.11 kB / 484.8 MB, free: 172 kB / 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.000524/0.1055, allocations: 0.6281 MB / 485.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.666e-05/0.1056, allocations: 7.938 kB / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1056, allocations: 4 kB / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.998e-05/0.1056, allocations: 29.8 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.1058, allocations: 4 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003267/0.1061, allocations: 126.6 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.1063, allocations: 0.6806 MB / 486.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.49e-05/0.1063, allocations: 0 / 486.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.202e-05/0.1064, allocations: 7.438 kB / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1064, allocations: 0 / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.1245, allocations: 1.858 MB / 488.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.434/7.558, allocations: 9.078 kB / 488.2 MB, free: 12.78 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches