Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001748/0.001748, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.002037/0.002037, allocations: 218.9 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.508/1.508, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2364/0.2364, allocations: 46.92 MB / 357.8 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 63.91 kB / 0.4916 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1366, allocations: 65.99 MB / 0.556 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001556/0.1382, allocations: 0.4943 MB / 0.5565 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.14, allocations: 1.419 MB / 0.5579 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.72e-05/0.1401, allocations: 0 / 0.5579 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.761e-05/0.1401, allocations: 0 / 0.5579 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.285e-05/0.1401, allocations: 0 / 0.5579 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000698/0.1408, allocations: 219.7 kB / 0.5581 GB, free: 3.719 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.693e-05/0.1409, allocations: 8 kB / 0.5581 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.668e-05/0.1409, allocations: 7.984 kB / 0.5581 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.1409, allocations: 4 kB / 0.5581 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.681e-05/0.141, allocations: 0 / 0.5581 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.141, allocations: 3.984 kB / 0.5581 GB, free: 3.695 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004411/0.1414, allocations: 283.6 kB / 0.5584 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.109e-05/0.1414, allocations: 0 / 0.5584 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.987e-05/0.1415, allocations: 4 kB / 0.5584 GB, free: 3.414 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.1417, allocations: 143.6 kB / 0.5586 GB, free: 3.273 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1417, allocations: 3.938 kB / 0.5586 GB, free: 3.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1417, allocations: 0 / 0.5586 GB, free: 3.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1417, allocations: 4 kB / 0.5586 GB, free: 3.266 MB / 414.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.0004067/0.1421, allocations: 335.4 kB / 0.5589 GB, free: 2.891 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.1421, allocations: 8.031 kB / 0.5589 GB, free: 2.883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.082e-05/0.1422, allocations: 192 / 0.5589 GB, free: 2.883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.908e-05/0.1422, allocations: 38.69 kB / 0.5589 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.585e-05/0.1422, allocations: 4.891 kB / 0.5589 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.1423, allocations: 160.4 kB / 0.5591 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.1423, allocations: 384 / 0.5591 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.523e-06/0.1423, allocations: 384 / 0.5591 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.1425, allocations: 49.62 kB / 0.5591 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.1425, allocations: 0 / 0.5591 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.1425, allocations: 0 / 0.5591 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1425, allocations: 0 / 0.5591 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.783e-05/0.1425, allocations: 15.92 kB / 0.5591 GB, free: 2.566 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003493/0.1429, allocations: 236.9 kB / 0.5594 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.652e-05/0.1429, allocations: 18.58 kB / 0.5594 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.826e-05/0.1429, allocations: 12.89 kB / 0.5594 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.1429, allocations: 0 / 0.5594 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.143, allocations: 30.56 kB / 0.5594 GB, free: 2.203 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.143, allocations: 0 / 0.5594 GB, free: 2.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001543/0.1431, allocations: 41.7 kB / 0.5595 GB, free: 2.156 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.1432, allocations: 51.41 kB / 0.5595 GB, free: 2.094 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.266e-05/0.1432, allocations: 105.9 kB / 0.5596 GB, free: 1.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.1433, allocations: 25.7 kB / 0.5596 GB, free: 1.949 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.1433, allocations: 92.03 kB / 0.5597 GB, free: 1.855 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.943e-06/0.1433, allocations: 3.953 kB / 0.5597 GB, free: 1.852 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.1434, allocations: 13.72 kB / 0.5597 GB, free: 1.832 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1435, allocations: 314.8 kB / 0.56 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.286e-05/0.1435, allocations: 8 kB / 0.5601 GB, free: 1.508 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.591e-05/0.1435, allocations: 22.69 kB / 0.5601 GB, free: 1.477 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.384e-05/0.1436, allocations: 30.52 kB / 0.5601 GB, free: 1.438 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1436, allocations: 0 / 0.5601 GB, free: 1.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.664e-05/0.1436, allocations: 49.62 kB / 0.5602 GB, free: 1.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.1437, allocations: 4 kB / 0.5602 GB, free: 1.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1437, allocations: 3.984 kB / 0.5602 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1437, allocations: 4.094 kB / 0.5602 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.877e-05/0.1437, allocations: 8 kB / 0.5602 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.1437, allocations: 0 / 0.5602 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.844e-05/0.1437, allocations: 4 kB / 0.5602 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-06/0.1438, allocations: 8 kB / 0.5602 GB, free: 1.352 MB / 414.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.271e-05/0.1438, allocations: 117.7 kB / 0.5603 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.1439, allocations: 3.984 kB / 0.5603 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.144, allocations: 48.91 kB / 0.5603 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.144, allocations: 4 kB / 0.5603 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.144, allocations: 0 / 0.5603 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.144, allocations: 0 / 0.5603 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.1441, allocations: 149.6 kB / 0.5605 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.1441, allocations: 4 kB / 0.5605 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1441, allocations: 0 / 0.5605 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1441, allocations: 0 / 0.5605 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.1441, allocations: 0 / 0.5605 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1441, allocations: 0 / 0.5605 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1442, allocations: 4.031 kB / 0.5605 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.1443, allocations: 139.4 kB / 0.5606 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.1443, allocations: 77.11 kB / 0.5607 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.074e-05/0.1443, allocations: 4 kB / 0.5607 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.59e-05/0.1444, allocations: 0 / 0.5607 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.013e-05/0.1444, allocations: 0 / 0.5607 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.1444, allocations: 0 / 0.5607 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.121e-05/0.1444, allocations: 87.3 kB / 0.5608 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1444, allocations: 0 / 0.5608 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.1447, allocations: 35.94 kB / 0.5608 GB, free: 0.5938 MB / 414.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.0005769/0.1453, allocations: 0.7123 MB / 0.5615 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 8.186e-05/0.1454, allocations: 16.11 kB / 0.5615 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1454, allocations: 3.938 kB / 0.5615 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.585e-05/0.1454, allocations: 29.7 kB / 0.5616 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.1456, allocations: 6.031 kB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003854/0.146, allocations: 126.6 kB / 0.5617 GB, free: 15.63 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.1463, allocations: 0.6729 MB / 0.5624 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.318e-05/0.1463, allocations: 4.25 kB / 0.5624 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.214e-05/0.1464, allocations: 7.438 kB / 0.5624 GB, free: 14.92 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1464, allocations: 0 / 0.5624 GB, free: 14.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01631/0.1627, allocations: 1.888 MB / 0.5642 GB, free: 13.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.082/8.244, allocations: 6.406 kB / 0.5642 GB, free: 13.13 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 11.42701596696861]