Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.001802/0.001802, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.00215/0.00215, allocations: 215.5 kB / 22.99 MB, free: 4.605 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.4/1.4, allocations: 207.7 MB / 233.8 MB, free: 9.801 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.2121/0.2121, allocations: 44.26 MB / 330.3 MB, free: 9.328 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.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",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.002206/0.002206, allocations: 70.25 kB / 467.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.106, allocations: 61.05 MB / 0.5161 GB, free: 7.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0017/0.1077, allocations: 0.5025 MB / 0.5166 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.1096, allocations: 1.341 MB / 0.5179 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.123e-05/0.1096, allocations: 3.938 kB / 0.5179 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.193e-05/0.1096, allocations: 0 / 0.5179 GB, free: 5.332 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.791e-05/0.1097, allocations: 4 kB / 0.5179 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.1103, allocations: 216.3 kB / 0.5182 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.235e-05/0.1104, allocations: 15.92 kB / 0.5182 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.425e-05/0.1104, allocations: 0 / 0.5182 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.32e-05/0.1104, allocations: 4 kB / 0.5182 GB, free: 5.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.244e-05/0.1105, allocations: 3.938 kB / 0.5182 GB, free: 5.094 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.1105, allocations: 0 / 0.5182 GB, free: 5.094 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004507/0.1109, allocations: 263.6 kB / 0.5184 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.343e-05/0.1109, allocations: 0 / 0.5184 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.787e-05/0.1109, allocations: 3.984 kB / 0.5184 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.1112, allocations: 151.6 kB / 0.5186 GB, free: 4.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1112, allocations: 0 / 0.5186 GB, free: 4.684 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1112, allocations: 3.938 kB / 0.5186 GB, free: 4.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1112, allocations: 3.938 kB / 0.5186 GB, free: 4.676 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003757/0.1116, allocations: 258.3 kB / 0.5188 GB, free: 4.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1116, allocations: 8.031 kB / 0.5188 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.1117, allocations: 38.75 kB / 0.5189 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.776e-05/0.1117, allocations: 0.9375 kB / 0.5189 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.615e-05/0.1118, allocations: 102.5 kB / 0.519 GB, free: 4.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.1118, allocations: 4.359 kB / 0.519 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.1118, allocations: 4.375 kB / 0.519 GB, free: 4.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.1119, allocations: 67.53 kB / 0.519 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.1119, allocations: 0 / 0.519 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.1119, allocations: 0 / 0.519 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.1119, allocations: 0 / 0.519 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.438e-05/0.112, allocations: 15.92 kB / 0.5191 GB, free: 4.113 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003873/0.1124, allocations: 216 kB / 0.5193 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.487e-05/0.1124, allocations: 14.58 kB / 0.5193 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.706e-05/0.1124, allocations: 8.922 kB / 0.5193 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-06/0.1124, allocations: 0 / 0.5193 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.1125, allocations: 30.56 kB / 0.5193 GB, free: 3.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.1125, allocations: 4 kB / 0.5193 GB, free: 3.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.1126, allocations: 45.62 kB / 0.5194 GB, free: 3.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.1126, allocations: 51.41 kB / 0.5194 GB, free: 3.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.968e-05/0.1127, allocations: 93.86 kB / 0.5195 GB, free: 3.566 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.1127, allocations: 25.7 kB / 0.5195 GB, free: 3.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.1128, allocations: 96.02 kB / 0.5196 GB, free: 3.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.518e-06/0.1128, allocations: 7.938 kB / 0.5196 GB, free: 3.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.1128, allocations: 13.72 kB / 0.5196 GB, free: 3.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.113, allocations: 314.8 kB / 0.5199 GB, free: 3.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.511e-05/0.113, allocations: 12.25 kB / 0.52 GB, free: 3.082 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.016e-05/0.113, allocations: 22.56 kB / 0.52 GB, free: 3.051 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.952e-05/0.1131, allocations: 30.52 kB / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1131, allocations: 0 / 0.52 GB, free: 3.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.009e-05/0.1132, allocations: 41.64 kB / 0.52 GB, free: 2.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1132, allocations: 7.984 kB / 0.52 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.1132, allocations: 0 / 0.52 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1132, allocations: 12.12 kB / 0.5201 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.029e-05/0.1132, allocations: 7.984 kB / 0.5201 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1133, allocations: 3.984 kB / 0.5201 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.845e-05/0.1133, allocations: 4 kB / 0.5201 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.1133, allocations: 0 / 0.5201 GB, free: 2.93 MB / 398.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 9.056e-05/0.1134, allocations: 121.7 kB / 0.5202 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.1134, allocations: 0 / 0.5202 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.1135, allocations: 40.84 kB / 0.5202 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1135, allocations: 4.031 kB / 0.5202 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1135, allocations: 0 / 0.5202 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1135, allocations: 0 / 0.5202 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.1137, allocations: 132.6 kB / 0.5204 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1137, allocations: 0 / 0.5204 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.149e-05/0.1137, allocations: 4 kB / 0.5204 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.1137, allocations: 0 / 0.5204 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.1137, allocations: 4 kB / 0.5204 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1137, allocations: 0 / 0.5204 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1137, allocations: 0 / 0.5204 GB, free: 2.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.1138, allocations: 139.4 kB / 0.5205 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.768e-06/0.1138, allocations: 7.984 kB / 0.5205 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.729e-06/0.1138, allocations: 0 / 0.5205 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.758e-05/0.1139, allocations: 7.938 kB / 0.5205 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.568e-06/0.1139, allocations: 0 / 0.5205 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.1139, allocations: 0 / 0.5205 GB, free: 2.402 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.504e-05/0.1139, allocations: 79.28 kB / 0.5206 GB, free: 2.324 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1139, allocations: 0 / 0.5206 GB, free: 2.324 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1142, allocations: 43.92 kB / 0.5206 GB, free: 2.281 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.0005691/0.1148, allocations: 0.7046 MB / 0.5213 GB, free: 1.547 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.887e-05/0.1149, allocations: 8 kB / 0.5213 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1149, allocations: 0 / 0.5213 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.385e-05/0.1149, allocations: 33.7 kB / 0.5214 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.1151, allocations: 0 / 0.5214 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003751/0.1155, allocations: 130.4 kB / 0.5215 GB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.259e-05/0.1155, allocations: 67.22 kB / 0.5216 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.126e-05/0.1155, allocations: 4.281 kB / 0.5216 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.188e-05/0.1156, allocations: 7.438 kB / 0.5216 GB, free: 1.234 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1156, allocations: 0 / 0.5216 GB, free: 1.234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.1407, allocations: 2.351 MB / 0.5239 GB, free: 14.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.38, allocations: 7.844 kB / 0.5239 GB, free: 14.87 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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: 14.305610592942685]