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.001814/0.001814, allocations: 97.91 kB / 20.48 MB, free: 1.367 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.002298/0.002298, allocations: 215 kB / 23.78 MB, free: 4.523 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.441/1.441, allocations: 207.7 MB / 234.6 MB, free: 9.777 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.2217/0.2217, allocations: 44.27 MB / 331.1 MB, free: 9.301 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="cs",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.002388/0.002388, allocations: 72.5 kB / 468.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.117, allocations: 61.04 MB / 0.5169 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001828/0.1188, allocations: 0.5065 MB / 0.5174 GB, free: 6.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.1208, allocations: 1.34 MB / 0.5187 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.446e-05/0.1209, allocations: 0 / 0.5187 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.774e-05/0.1209, allocations: 3.938 kB / 0.5187 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.635e-05/0.1209, allocations: 0 / 0.5187 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007881/0.1217, allocations: 216.3 kB / 0.5189 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.246e-05/0.1217, allocations: 19.88 kB / 0.5189 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.06e-05/0.1218, allocations: 0 / 0.5189 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.604e-05/0.1218, allocations: 0 / 0.5189 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.386e-05/0.1218, allocations: 7.984 kB / 0.5189 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.1219, allocations: 0 / 0.5189 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005028/0.1224, allocations: 275.6 kB / 0.5192 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.701e-05/0.1224, allocations: 4 kB / 0.5192 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.443e-05/0.1224, allocations: 11.92 kB / 0.5192 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.1227, allocations: 135.6 kB / 0.5194 GB, free: 4.664 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1227, allocations: 0 / 0.5194 GB, free: 4.664 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1227, allocations: 8 kB / 0.5194 GB, free: 4.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1227, allocations: 0 / 0.5194 GB, free: 4.656 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.0003941/0.1231, allocations: 262.2 kB / 0.5196 GB, free: 4.371 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1232, allocations: 12.02 kB / 0.5196 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.037e-05/0.1232, allocations: 192 / 0.5196 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.305e-05/0.1232, allocations: 30.75 kB / 0.5196 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.936e-05/0.1232, allocations: 4.938 kB / 0.5197 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.1234, allocations: 102.5 kB / 0.5198 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.098e-06/0.1234, allocations: 384 / 0.5198 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-06/0.1234, allocations: 384 / 0.5198 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.1235, allocations: 71.33 kB / 0.5198 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.1235, allocations: 0 / 0.5198 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1235, allocations: 0 / 0.5198 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1235, allocations: 3.984 kB / 0.5198 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.244e-05/0.1235, allocations: 7.938 kB / 0.5198 GB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001587/0.1237, allocations: 116.8 kB / 0.5199 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.504e-05/0.1238, allocations: 18.58 kB / 0.52 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.123e-05/0.1238, allocations: 8.953 kB / 0.52 GB, free: 3.902 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.1238, allocations: 3.938 kB / 0.52 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.1238, allocations: 30.56 kB / 0.52 GB, free: 3.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1238, allocations: 4 kB / 0.52 GB, free: 3.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001484/0.124, allocations: 41.62 kB / 0.52 GB, free: 3.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.124, allocations: 55.34 kB / 0.5201 GB, free: 3.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.192e-05/0.1241, allocations: 101.8 kB / 0.5202 GB, free: 3.633 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.1241, allocations: 25.7 kB / 0.5202 GB, free: 3.602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.162e-05/0.1242, allocations: 84.12 kB / 0.5203 GB, free: 3.516 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.1242, allocations: 3.953 kB / 0.5203 GB, free: 3.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.1242, allocations: 17.7 kB / 0.5203 GB, free: 3.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1244, allocations: 310.8 kB / 0.5206 GB, free: 3.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.353e-05/0.1244, allocations: 4.25 kB / 0.5206 GB, free: 3.172 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.166e-05/0.1244, allocations: 8 kB / 0.5206 GB, free: 3.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.144e-05/0.1245, allocations: 8.859 kB / 0.5206 GB, free: 3.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1245, allocations: 0 / 0.5206 GB, free: 3.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.018e-05/0.1245, allocations: 41.58 kB / 0.5207 GB, free: 3.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1245, allocations: 4 kB / 0.5207 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1245, allocations: 3.984 kB / 0.5207 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1246, allocations: 0 / 0.5207 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.943e-05/0.1246, allocations: 4 kB / 0.5207 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1246, allocations: 0 / 0.5207 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.37e-05/0.1247, allocations: 4.094 kB / 0.5207 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.1247, allocations: 0 / 0.5207 GB, free: 3.09 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 9.225e-05/0.1248, allocations: 109.8 kB / 0.5208 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.1248, allocations: 3.938 kB / 0.5208 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.1249, allocations: 44.84 kB / 0.5208 GB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1249, allocations: 3.938 kB / 0.5208 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1249, allocations: 4 kB / 0.5209 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1249, allocations: 4.031 kB / 0.5209 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.125, allocations: 120.8 kB / 0.521 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.125, allocations: 7.922 kB / 0.521 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.125, allocations: 0 / 0.521 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.125, allocations: 0 / 0.521 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.1251, allocations: 4 kB / 0.521 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1251, allocations: 0 / 0.521 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1251, allocations: 0 / 0.521 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.221e-05/0.1251, allocations: 53.14 kB / 0.521 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.542e-05/0.1252, allocations: 15.88 kB / 0.521 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.1252, allocations: 8.031 kB / 0.5211 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.001e-05/0.1252, allocations: 0 / 0.5211 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.1253, allocations: 3.938 kB / 0.5211 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.1253, allocations: 4 kB / 0.5211 GB, free: 2.633 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.983e-05/0.1253, allocations: 75.28 kB / 0.5211 GB, free: 2.559 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1253, allocations: 0 / 0.5211 GB, free: 2.559 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002756/0.1256, allocations: 47.86 kB / 0.5212 GB, free: 2.512 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.0005927/0.1262, allocations: 0.6435 MB / 0.5218 GB, free: 1.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.397e-05/0.1263, allocations: 8.125 kB / 0.5218 GB, free: 1.828 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1263, allocations: 0 / 0.5218 GB, free: 1.828 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.747e-05/0.1263, allocations: 33.64 kB / 0.5218 GB, free: 1.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.1265, allocations: 3.938 kB / 0.5219 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004006/0.1269, allocations: 126.5 kB / 0.522 GB, free: 1.621 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.858e-05/0.1269, allocations: 63.28 kB / 0.522 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.478e-05/0.1269, allocations: 0 / 0.522 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.127, allocations: 7.438 kB / 0.522 GB, free: 1.531 MB / 398.1 MB Notification: Performance of SimCode: time 4.1e-07/0.127, allocations: 4.125 kB / 0.522 GB, free: 1.527 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02166/0.1486, allocations: 2.017 MB / 0.524 GB, free: 15.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.46, allocations: 19.41 kB / 0.524 GB, free: 15.5 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.46521290706005]