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.0008036/0.0008036, allocations: 95.88 kB / 17.35 MB, free: 6.371 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.000876/0.000876, allocations: 176.4 kB / 18.25 MB, free: 5.523 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.26/1.26, allocations: 223.3 MB / 242.3 MB, free: 232 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1833/0.1833, allocations: 44.25 MB / 337.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1025, allocations: 61.92 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0005657/0.1031, allocations: 218.9 kB / 472.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.1049, allocations: 1.406 MB / 474 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.903e-06/0.1049, allocations: 0 / 474 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.26e-06/0.105, allocations: 0 / 474 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.302e-05/0.105, allocations: 0 / 474 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.1054, allocations: 151.3 kB / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.03e-05/0.1055, allocations: 7.984 kB / 474.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.35e-05/0.1055, allocations: 3.984 kB / 474.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.154e-05/0.1055, allocations: 15.88 kB / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.05e-05/0.1056, allocations: 0 / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.712e-06/0.1056, allocations: 0 / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003964/0.106, allocations: 267.6 kB / 474.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-06/0.106, allocations: 4 kB / 474.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.099e-05/0.106, allocations: 25.7 kB / 474.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001898/0.1062, allocations: 147.6 kB / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.1062, allocations: 0 / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1062, allocations: 4 kB / 474.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1062, allocations: 0 / 474.6 MB, free: 11.01 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.000249/0.1065, allocations: 331.6 kB / 474.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.606e-05/0.1065, allocations: 8.031 kB / 474.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.356e-05/0.1065, allocations: 30.75 kB / 474.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.747e-05/0.1066, allocations: 4.938 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.445e-05/0.1067, allocations: 164.3 kB / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.739e-06/0.1067, allocations: 384 / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.25e-06/0.1067, allocations: 384 / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.695e-05/0.1067, allocations: 41.81 kB / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-06/0.1068, allocations: 4 kB / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-06/0.1068, allocations: 0 / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-06/0.1068, allocations: 0 / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.483e-05/0.1068, allocations: 4 kB / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001083/0.1069, allocations: 149.6 kB / 475.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.865e-05/0.1069, allocations: 26.55 kB / 475.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.366e-05/0.107, allocations: 8.859 kB / 475.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.548e-06/0.107, allocations: 0 / 475.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.107, allocations: 42.56 kB / 475.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.107, allocations: 0 / 475.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 7.797e-05/0.1071, allocations: 29.7 kB / 475.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.1071, allocations: 55.39 kB / 475.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.546e-05/0.1072, allocations: 101.8 kB / 475.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.1072, allocations: 29.64 kB / 475.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.628e-05/0.1072, allocations: 80.39 kB / 475.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.155e-05/0.1073, allocations: 8.281 kB / 475.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.908e-05/0.1073, allocations: 9.719 kB / 475.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.461e-05/0.1074, allocations: 310.8 kB / 476 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.034e-06/0.1074, allocations: 3.938 kB / 476 MB, free: 9.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.973e-06/0.1074, allocations: 4 kB / 476 MB, free: 9.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.857e-05/0.1074, allocations: 12.84 kB / 476 MB, free: 9.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.1074, allocations: 4 kB / 476 MB, free: 9.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.303e-05/0.1075, allocations: 37.7 kB / 476.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.1075, allocations: 4 kB / 476.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1075, allocations: 4 kB / 476.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.825e-06/0.1075, allocations: 3.938 kB / 476.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.177e-05/0.1076, allocations: 0 / 476.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1076, allocations: 0 / 476.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.12e-05/0.1076, allocations: 0 / 476.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.1076, allocations: 4 kB / 476.1 MB, free: 9.293 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.104e-05/0.1077, allocations: 113.8 kB / 476.2 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.787e-06/0.1077, allocations: 3.969 kB / 476.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.1078, allocations: 48.78 kB / 476.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1078, allocations: 0 / 476.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1078, allocations: 7.984 kB / 476.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1078, allocations: 0 / 476.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.305e-05/0.1079, allocations: 145.7 kB / 476.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.1079, allocations: 0 / 476.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.414e-06/0.1079, allocations: 7.938 kB / 476.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.108, allocations: 4.031 kB / 476.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.108, allocations: 3.984 kB / 476.4 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.108, allocations: 7.922 kB / 476.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.108, allocations: 0 / 476.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.495e-05/0.1081, allocations: 57.05 kB / 476.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.1081, allocations: 81.05 kB / 476.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-06/0.1081, allocations: 0 / 476.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.923e-05/0.1082, allocations: 12.02 kB / 476.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.218e-05/0.1082, allocations: 4 kB / 476.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.1082, allocations: 4 kB / 476.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.965e-05/0.1082, allocations: 75.28 kB / 476.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1083, allocations: 0 / 476.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00023/0.1085, allocations: 40 kB / 476.7 MB, free: 8.586 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.0004678/0.109, allocations: 0.6425 MB / 477.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.25e-05/0.109, allocations: 15.88 kB / 477.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.109, allocations: 0 / 477.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.716e-05/0.1091, allocations: 29.7 kB / 477.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.1092, allocations: 6.234 kB / 477.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003094/0.1095, allocations: 128.8 kB / 477.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.1097, allocations: 0.6692 MB / 478.2 MB, free: 7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.995e-05/0.1098, allocations: 11.97 kB / 478.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.975e-05/0.1098, allocations: 11.38 kB / 478.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1098, allocations: 0 / 478.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.261/1.37, allocations: 1.644 MB / 479.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/1.371, allocations: 216.2 kB / 480 MB, free: 5.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.326/3.697, allocations: 0 / 480 MB, free: 5.18 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