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.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.00183/0.00183, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002206/0.002206, allocations: 219 kB / 21.46 MB, free: 1.586 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.482/1.482, allocations: 230.6 MB / 254.8 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2197/0.2197, allocations: 44.9 MB / 355.8 MB, free: 12.31 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.001926/0.001926, allocations: 67.91 kB / 0.4885 GB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1264, allocations: 65.42 MB / 0.5524 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001556/0.1279, allocations: 493 kB / 0.5529 GB, free: 9.637 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1298, allocations: 1.426 MB / 0.5543 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.856e-05/0.1299, allocations: 0 / 0.5543 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.1299, allocations: 0 / 0.5543 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.983e-05/0.1299, allocations: 3.938 kB / 0.5543 GB, free: 8.188 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007217/0.1306, allocations: 219.4 kB / 0.5545 GB, free: 7.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.859e-05/0.1307, allocations: 7.984 kB / 0.5545 GB, free: 7.973 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.473e-05/0.1307, allocations: 0 / 0.5545 GB, free: 7.973 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.917e-05/0.1308, allocations: 8 kB / 0.5545 GB, free: 7.965 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.135e-05/0.1308, allocations: 3.984 kB / 0.5545 GB, free: 7.961 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.1308, allocations: 0 / 0.5545 GB, free: 7.961 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004626/0.1313, allocations: 283.6 kB / 0.5548 GB, free: 7.684 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.407e-05/0.1313, allocations: 3.984 kB / 0.5548 GB, free: 7.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.1313, allocations: 3.938 kB / 0.5548 GB, free: 7.676 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.1316, allocations: 139.9 kB / 0.5549 GB, free: 7.539 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1316, allocations: 3.984 kB / 0.5549 GB, free: 7.535 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1316, allocations: 0 / 0.5549 GB, free: 7.535 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1316, allocations: 0 / 0.5549 GB, free: 7.535 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.0004554/0.132, allocations: 341.4 kB / 0.5553 GB, free: 7.156 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1321, allocations: 8.031 kB / 0.5553 GB, free: 7.148 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.432e-05/0.1321, allocations: 4.188 kB / 0.5553 GB, free: 7.145 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.062e-05/0.1321, allocations: 38.75 kB / 0.5553 GB, free: 7.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.785e-05/0.1322, allocations: 4.891 kB / 0.5553 GB, free: 7.094 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.1323, allocations: 164.3 kB / 0.5555 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.1323, allocations: 384 / 0.5555 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.1323, allocations: 384 / 0.5555 GB, free: 6.895 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.1324, allocations: 45.62 kB / 0.5555 GB, free: 6.844 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1324, allocations: 0 / 0.5555 GB, free: 6.844 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.1324, allocations: 0 / 0.5555 GB, free: 6.844 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.1324, allocations: 7.938 kB / 0.5555 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.231e-05/0.1325, allocations: 4 kB / 0.5555 GB, free: 6.832 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003859/0.1329, allocations: 240.9 kB / 0.5558 GB, free: 6.547 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.593e-05/0.1329, allocations: 26.52 kB / 0.5558 GB, free: 6.512 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.751e-05/0.1329, allocations: 4.859 kB / 0.5558 GB, free: 6.504 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.133, allocations: 3.984 kB / 0.5558 GB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.133, allocations: 34.56 kB / 0.5558 GB, free: 6.457 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.133, allocations: 0 / 0.5558 GB, free: 6.457 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001514/0.1331, allocations: 37.75 kB / 0.5559 GB, free: 6.414 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.1332, allocations: 55.34 kB / 0.5559 GB, free: 6.348 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.039e-05/0.1333, allocations: 97.86 kB / 0.556 GB, free: 6.242 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.1333, allocations: 29.64 kB / 0.556 GB, free: 6.207 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.523e-05/0.1333, allocations: 84.09 kB / 0.5561 GB, free: 6.121 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.12e-05/0.1334, allocations: 12.19 kB / 0.5561 GB, free: 6.109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.1334, allocations: 17.72 kB / 0.5561 GB, free: 6.086 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1336, allocations: 314.8 kB / 0.5564 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.192e-05/0.1336, allocations: 4 kB / 0.5564 GB, free: 5.766 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.776e-05/0.1336, allocations: 18.58 kB / 0.5565 GB, free: 5.738 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.518e-05/0.1336, allocations: 34.5 kB / 0.5565 GB, free: 5.695 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1336, allocations: 4 kB / 0.5565 GB, free: 5.691 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.906e-05/0.1337, allocations: 49.64 kB / 0.5565 GB, free: 5.637 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.1337, allocations: 4 kB / 0.5565 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1338, allocations: 3.984 kB / 0.5566 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1338, allocations: 0 / 0.5566 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.293e-05/0.1338, allocations: 8 kB / 0.5566 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1338, allocations: 0 / 0.5566 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.938e-05/0.1338, allocations: 8.031 kB / 0.5566 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1339, allocations: 4 kB / 0.5566 GB, free: 5.609 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.894e-05/0.1339, allocations: 109.8 kB / 0.5567 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.134, allocations: 0 / 0.5567 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.1341, allocations: 48.75 kB / 0.5567 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1341, allocations: 4 kB / 0.5567 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1341, allocations: 4.031 kB / 0.5567 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1341, allocations: 0 / 0.5567 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.1343, allocations: 153.6 kB / 0.5569 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.922e-06/0.1343, allocations: 4 kB / 0.5569 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1343, allocations: 3.938 kB / 0.5569 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1343, allocations: 0 / 0.5569 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-06/0.1343, allocations: 0 / 0.5569 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1343, allocations: 0 / 0.5569 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1343, allocations: 0 / 0.5569 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001182/0.1344, allocations: 135.5 kB / 0.557 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.1345, allocations: 77.11 kB / 0.5571 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.1345, allocations: 4 kB / 0.5571 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.191e-05/0.1346, allocations: 3.938 kB / 0.5571 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.406e-05/0.1346, allocations: 4 kB / 0.5571 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.1346, allocations: 0 / 0.5571 GB, free: 4.973 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.954e-05/0.1346, allocations: 79.28 kB / 0.5572 GB, free: 4.895 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1346, allocations: 0 / 0.5572 GB, free: 4.895 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.1349, allocations: 40.05 kB / 0.5572 GB, free: 4.855 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.0005833/0.1355, allocations: 0.7084 MB / 0.5579 GB, free: 4.117 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.938e-05/0.1356, allocations: 19.88 kB / 0.5579 GB, free: 4.098 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1356, allocations: 0 / 0.5579 GB, free: 4.098 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.568e-05/0.1356, allocations: 33.92 kB / 0.558 GB, free: 4.059 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.1358, allocations: 2.031 kB / 0.558 GB, free: 4.059 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/0.1362, allocations: 126.6 kB / 0.5581 GB, free: 3.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1365, allocations: 0.6729 MB / 0.5587 GB, free: 3.195 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.959e-05/0.1365, allocations: 0 / 0.5587 GB, free: 3.195 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.131e-05/0.1366, allocations: 7.438 kB / 0.5587 GB, free: 3.188 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1366, allocations: 0 / 0.5587 GB, free: 3.188 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.1529, allocations: 1.901 MB / 0.5606 GB, free: 1.391 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.389/8.542, allocations: 6.406 kB / 0.5606 GB, free: 1.387 MB / 414.1 MB " [Timeout remaining time 651] (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 --stepSize=0.019992 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.612909147981554]