Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",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.001386/0.001386, allocations: 111.8 kB / 17.33 MB, free: 6.02 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.00147/0.00147, allocations: 197.3 kB / 18.25 MB, free: 5.113 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.312/1.312, allocations: 222.9 MB / 241.9 MB, free: 15.44 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.2026/0.2026, allocations: 44.18 MB / 336.3 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 56.36 kB / 408 MB, free: 27.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1084, allocations: 60.83 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00187/0.1103, allocations: 0.5526 MB / 469.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.1122, allocations: 1.364 MB / 470.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.123e-05/0.1123, allocations: 0 / 470.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.414e-05/0.1123, allocations: 0 / 470.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.863e-05/0.1123, allocations: 0 / 470.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000724/0.1131, allocations: 198.7 kB / 470.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.12e-05/0.1131, allocations: 8 kB / 470.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.013e-05/0.1132, allocations: 4 kB / 470.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.849e-05/0.1132, allocations: 3.938 kB / 470.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.283e-05/0.1132, allocations: 11.98 kB / 471 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1133, allocations: 0 / 471 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004274/0.1137, allocations: 267.6 kB / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.1137, allocations: 3.984 kB / 471.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.16e-05/0.1138, allocations: 3.984 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.114, allocations: 143.7 kB / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.114, allocations: 0 / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.114, allocations: 0 / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.114, allocations: 0 / 471.4 MB, free: 12.09 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.0003547/0.1144, allocations: 339.6 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1144, allocations: 8.031 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.827e-05/0.1145, allocations: 30.75 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.1145, allocations: 4.938 kB / 471.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.718e-05/0.1146, allocations: 160.4 kB / 471.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1146, allocations: 4.359 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.165e-06/0.1146, allocations: 384 / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.1148, allocations: 53.69 kB / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1148, allocations: 0 / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.1148, allocations: 0 / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1148, allocations: 4 kB / 472 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.404e-05/0.1148, allocations: 8 kB / 472 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003679/0.1152, allocations: 240.9 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.179e-05/0.1153, allocations: 18.58 kB / 472.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.676e-05/0.1153, allocations: 4.859 kB / 472.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.613e-06/0.1153, allocations: 0 / 472.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.1153, allocations: 42.5 kB / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.1153, allocations: 0 / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000154/0.1155, allocations: 41.66 kB / 472.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.1156, allocations: 51.41 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.306e-05/0.1156, allocations: 94.14 kB / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.1157, allocations: 29.7 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.146e-05/0.1157, allocations: 91.97 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.362e-06/0.1157, allocations: 8.234 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.201e-05/0.1158, allocations: 13.72 kB / 472.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1159, allocations: 322.7 kB / 472.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.445e-05/0.1159, allocations: 4 kB / 472.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.045e-05/0.1159, allocations: 26.5 kB / 472.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.733e-05/0.116, allocations: 26.58 kB / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.116, allocations: 0 / 473 MB, free: 10.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.191e-05/0.1161, allocations: 41.64 kB / 473 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.1161, allocations: 8 kB / 473 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1161, allocations: 3.984 kB / 473 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1161, allocations: 0 / 473 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.594e-05/0.1162, allocations: 15.94 kB / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1162, allocations: 0 / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.791e-05/0.1162, allocations: 8.094 kB / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1162, allocations: 4 kB / 473 MB, free: 10.17 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 8.054e-05/0.1163, allocations: 113.8 kB / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.1164, allocations: 0 / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.1165, allocations: 52.67 kB / 473.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1165, allocations: 0 / 473.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1165, allocations: 8.031 kB / 473.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1165, allocations: 0 / 473.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/0.1167, allocations: 149.6 kB / 473.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.1167, allocations: 0 / 473.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.404e-06/0.1167, allocations: 7.938 kB / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.1167, allocations: 96 / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.1167, allocations: 0 / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1167, allocations: 3.938 kB / 473.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1167, allocations: 3.984 kB / 473.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1168, allocations: 139.5 kB / 473.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/0.1169, allocations: 77.11 kB / 473.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.11e-05/0.1169, allocations: 0 / 473.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.859e-05/0.1169, allocations: 4 kB / 473.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.28e-05/0.117, allocations: 0 / 473.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.117, allocations: 0 / 473.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.192e-05/0.117, allocations: 79.28 kB / 473.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.117, allocations: 0 / 473.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.1173, allocations: 44.11 kB / 473.7 MB, free: 9.402 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.0005206/0.1178, allocations: 0.7089 MB / 474.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.324e-05/0.1179, allocations: 8 kB / 474.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1179, allocations: 0 / 474.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.011e-05/0.118, allocations: 41.86 kB / 474.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.1182, allocations: 0 / 474.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003931/0.1186, allocations: 130.6 kB / 474.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.1189, allocations: 0.6729 MB / 475.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.345e-05/0.1189, allocations: 0 / 475.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.356e-05/0.1189, allocations: 11.44 kB / 475.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1189, allocations: 0 / 475.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01244/0.1314, allocations: 1.745 MB / 477 MB, free: 6.102 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/0.1316, allocations: 207.8 kB / 477.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/1.942, allocations: 0 / 477.2 MB, free: 5.84 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/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_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches