Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001533/0.001533, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001914/0.001914, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2169/0.2169, allocations: 46.11 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 76.28 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 62.44 MB / 480.1 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0016/0.1039, allocations: 0.4918 MB / 480.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.1056, allocations: 1.4 MB / 482 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.343e-05/0.1057, allocations: 4 kB / 482 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.057e-05/0.1057, allocations: 3.938 kB / 482 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.466e-05/0.1057, allocations: 3.938 kB / 482 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.1064, allocations: 223.1 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.021e-05/0.1065, allocations: 4 kB / 482.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.745e-05/0.1065, allocations: 3.984 kB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.286e-05/0.1065, allocations: 7.984 kB / 482.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.034e-05/0.1066, allocations: 4 kB / 482.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.1066, allocations: 0 / 482.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004134/0.107, allocations: 287.6 kB / 482.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.12e-05/0.107, allocations: 0 / 482.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.201e-05/0.1071, allocations: 7.938 kB / 482.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.1073, allocations: 143.7 kB / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1073, allocations: 0 / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1073, allocations: 0 / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1073, allocations: 0 / 482.7 MB, free: 2.633 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003308/0.1076, allocations: 335.6 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1077, allocations: 8.031 kB / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.156e-05/0.1077, allocations: 42.69 kB / 483.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.483e-05/0.1078, allocations: 4.938 kB / 483.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.339e-05/0.1079, allocations: 164.3 kB / 483.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-06/0.1079, allocations: 384 / 483.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-06/0.1079, allocations: 384 / 483.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.72e-05/0.108, allocations: 45.81 kB / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.58e-06/0.108, allocations: 0 / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.108, allocations: 0 / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.108, allocations: 0 / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.67e-05/0.108, allocations: 4 kB / 483.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003202/0.1084, allocations: 244.9 kB / 483.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.714e-05/0.1084, allocations: 34.44 kB / 483.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.494e-05/0.1084, allocations: 4.859 kB / 483.6 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.561e-06/0.1085, allocations: 0 / 483.6 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.1085, allocations: 30.56 kB / 483.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/0.1085, allocations: 4 kB / 483.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001269/0.1086, allocations: 41.66 kB / 483.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.1087, allocations: 55.34 kB / 483.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.948e-05/0.1087, allocations: 98.14 kB / 483.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.1087, allocations: 25.7 kB / 483.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.1088, allocations: 84.08 kB / 483.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.502e-06/0.1088, allocations: 3.906 kB / 483.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.1088, allocations: 21.95 kB / 483.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1089, allocations: 318.8 kB / 484.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.226e-05/0.109, allocations: 4 kB / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.221e-05/0.109, allocations: 18.58 kB / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.599e-05/0.109, allocations: 30.5 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.109, allocations: 4 kB / 484.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.213e-05/0.1091, allocations: 49.64 kB / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1091, allocations: 4 kB / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1091, allocations: 0 / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.1092, allocations: 0 / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.909e-05/0.1092, allocations: 11.98 kB / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1092, allocations: 0 / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.1093, allocations: 0 / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.1093, allocations: 4 kB / 484.3 MB, free: 0.7227 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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 7.339e-05/0.1093, allocations: 113.9 kB / 484.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.561e-05/0.1094, allocations: 4 kB / 484.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.1095, allocations: 44.75 kB / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1095, allocations: 0 / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1095, allocations: 4 kB / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1095, allocations: 0 / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.1097, allocations: 161.5 kB / 484.7 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.1097, allocations: 8.031 kB / 484.7 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.1097, allocations: 4 kB / 484.7 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.1097, allocations: 0 / 484.7 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.1097, allocations: 0 / 484.7 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1097, allocations: 3.938 kB / 484.7 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1097, allocations: 0 / 484.7 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.527e-05/0.1098, allocations: 127.5 kB / 484.8 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.563e-05/0.1099, allocations: 81.12 kB / 484.9 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-06/0.1099, allocations: 7.938 kB / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.772e-05/0.11, allocations: 4 kB / 484.9 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.535e-05/0.11, allocations: 4 kB / 484.9 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.11, allocations: 0 / 484.9 MB, free: 72 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.173e-05/0.11, allocations: 79.28 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.11, allocations: 0 / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1103, allocations: 43.98 kB / 485 MB, free: 15.95 MB / 366.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.0005101/0.1109, allocations: 0.7047 MB / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.364e-05/0.1109, allocations: 11.94 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.111, allocations: 0 / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.952e-05/0.111, allocations: 29.7 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.1112, allocations: 2.625 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003654/0.1116, allocations: 134.6 kB / 485.9 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.1118, allocations: 0.6729 MB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.357e-05/0.1119, allocations: 4.094 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.246e-05/0.1119, allocations: 7.438 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1119, allocations: 0 / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.1293, allocations: 1.866 MB / 488.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.506/7.636, allocations: 1.078 kB / 488.5 MB, free: 12.49 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_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_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches