Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 114.4 kB / 19.69 MB, free: 2.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002058/0.002058, allocations: 215.4 kB / 23 MB, free: 5.004 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 207.6 MB / 233.8 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2082/0.2082, allocations: 44.23 MB / 330.3 MB, free: 9.543 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 70.81 kB / 467.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1119, allocations: 61.04 MB / 0.5161 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001772/0.1137, allocations: 0.5102 MB / 0.5166 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001966/0.1157, allocations: 1.403 MB / 0.518 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.214e-05/0.1157, allocations: 0 / 0.518 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.528e-05/0.1157, allocations: 0 / 0.518 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.272e-05/0.1157, allocations: 0 / 0.518 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007026/0.1164, allocations: 228.2 kB / 0.5182 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.318e-05/0.1165, allocations: 4 kB / 0.5182 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.806e-05/0.1165, allocations: 3.984 kB / 0.5182 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.616e-05/0.1165, allocations: 4 kB / 0.5182 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.273e-05/0.1166, allocations: 4 kB / 0.5182 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.114e-05/0.1166, allocations: 0 / 0.5182 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004784/0.1171, allocations: 283.6 kB / 0.5185 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.42e-05/0.1171, allocations: 3.938 kB / 0.5185 GB, free: 4.914 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.983e-05/0.1171, allocations: 8 kB / 0.5185 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.1173, allocations: 143.6 kB / 0.5186 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1173, allocations: 4 kB / 0.5187 GB, free: 4.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1173, allocations: 0 / 0.5187 GB, free: 4.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1173, allocations: 0 / 0.5187 GB, free: 4.762 MB / 398.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.0003558/0.1177, allocations: 262.3 kB / 0.5189 GB, free: 4.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1177, allocations: 8.031 kB / 0.5189 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.346e-05/0.1178, allocations: 30.75 kB / 0.5189 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.347e-05/0.1178, allocations: 0.9375 kB / 0.5189 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.1179, allocations: 106.5 kB / 0.519 GB, free: 4.301 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1179, allocations: 4.312 kB / 0.519 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.1179, allocations: 8.312 kB / 0.5191 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.249e-05/0.118, allocations: 41.81 kB / 0.5191 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.118, allocations: 3.938 kB / 0.5191 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-06/0.118, allocations: 4 kB / 0.5191 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.118, allocations: 0 / 0.5191 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.58e-05/0.1181, allocations: 4 kB / 0.5191 GB, free: 4.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.1182, allocations: 116.8 kB / 0.5192 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.736e-05/0.1182, allocations: 22.61 kB / 0.5192 GB, free: 4.043 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.594e-05/0.1183, allocations: 4.859 kB / 0.5192 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.1183, allocations: 0 / 0.5192 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.1183, allocations: 42.56 kB / 0.5193 GB, free: 3.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.1183, allocations: 0 / 0.5193 GB, free: 3.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001295/0.1184, allocations: 33.64 kB / 0.5193 GB, free: 3.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.1185, allocations: 55.41 kB / 0.5194 GB, free: 3.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.723e-05/0.1185, allocations: 97.84 kB / 0.5195 GB, free: 3.773 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.1186, allocations: 25.7 kB / 0.5195 GB, free: 3.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.223e-05/0.1186, allocations: 80.14 kB / 0.5196 GB, free: 3.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.1186, allocations: 12.2 kB / 0.5196 GB, free: 3.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.667e-05/0.1187, allocations: 9.719 kB / 0.5196 GB, free: 3.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1188, allocations: 310.8 kB / 0.5199 GB, free: 3.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.324e-05/0.1188, allocations: 4 kB / 0.5199 GB, free: 3.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.081e-05/0.1188, allocations: 4 kB / 0.5199 GB, free: 3.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.808e-05/0.1188, allocations: 12.8 kB / 0.5199 GB, free: 3.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1188, allocations: 3.984 kB / 0.5199 GB, free: 3.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.873e-05/0.1189, allocations: 41.72 kB / 0.5199 GB, free: 3.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.1189, allocations: 8 kB / 0.5199 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1189, allocations: 0 / 0.5199 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1189, allocations: 0 / 0.5199 GB, free: 3.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.565e-05/0.119, allocations: 4 kB / 0.52 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.119, allocations: 0 / 0.52 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.28e-05/0.119, allocations: 0 / 0.52 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.119, allocations: 0 / 0.52 GB, free: 3.234 MB / 398.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 7.36e-05/0.1191, allocations: 109.8 kB / 0.5201 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.1191, allocations: 7.938 kB / 0.5201 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001072/0.1192, allocations: 48.8 kB / 0.5201 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1192, allocations: 0 / 0.5201 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.1192, allocations: 3.938 kB / 0.5201 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-06/0.1192, allocations: 0 / 0.5201 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.1193, allocations: 124.8 kB / 0.5202 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.1193, allocations: 0 / 0.5202 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.745e-06/0.1193, allocations: 3.938 kB / 0.5202 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1193, allocations: 7.969 kB / 0.5202 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.1193, allocations: 4 kB / 0.5202 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1193, allocations: 4 kB / 0.5203 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.1193, allocations: 3.984 kB / 0.5203 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.845e-05/0.1194, allocations: 57.08 kB / 0.5203 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.057e-05/0.1194, allocations: 11.89 kB / 0.5203 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-06/0.1194, allocations: 0 / 0.5203 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.503e-05/0.1195, allocations: 12.02 kB / 0.5203 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.27e-05/0.1195, allocations: 0 / 0.5203 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.1195, allocations: 0 / 0.5203 GB, free: 2.766 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.849e-05/0.1196, allocations: 79.28 kB / 0.5204 GB, free: 2.688 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1196, allocations: 0 / 0.5204 GB, free: 2.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.1198, allocations: 39.88 kB / 0.5204 GB, free: 2.648 MB / 398.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.0005268/0.1203, allocations: 0.6398 MB / 0.5211 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.946e-05/0.1204, allocations: 11.92 kB / 0.5211 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1204, allocations: 0 / 0.5211 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.467e-05/0.1204, allocations: 29.7 kB / 0.5211 GB, free: 1.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.1206, allocations: 0 / 0.5211 GB, free: 1.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003356/0.1209, allocations: 130.5 kB / 0.5212 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.1212, allocations: 0.673 MB / 0.5219 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.351e-05/0.1212, allocations: 0 / 0.5219 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.1212, allocations: 15.42 kB / 0.5219 GB, free: 1.047 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1212, allocations: 0 / 0.5219 GB, free: 1.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02647/0.1477, allocations: 1.943 MB / 0.5238 GB, free: 15.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.79, allocations: 7.734 kB / 0.5238 GB, free: 15.1 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.47732363594696]