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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 116.7 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 189.2 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.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.2193/0.2193, allocations: 44.93 MB / 349.6 MB, free: 1.73 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 64.83 kB / 491.8 MB, free: 30.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1252, allocations: 64.26 MB / 0.543 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00168/0.1269, allocations: 0.4893 MB / 0.5435 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.1288, allocations: 1.366 MB / 0.5448 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.496e-05/0.1288, allocations: 0 / 0.5448 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.899e-05/0.1289, allocations: 0 / 0.5448 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.009e-05/0.1289, allocations: 4 kB / 0.5448 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007427/0.1296, allocations: 219.5 kB / 0.545 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.827e-05/0.1297, allocations: 7.984 kB / 0.545 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.1297, allocations: 4 kB / 0.545 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.576e-05/0.1297, allocations: 7.938 kB / 0.545 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.045e-05/0.1298, allocations: 7.984 kB / 0.545 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.1298, allocations: 0 / 0.545 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004512/0.1303, allocations: 271.6 kB / 0.5453 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.226e-05/0.1303, allocations: 4 kB / 0.5453 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.192e-05/0.1303, allocations: 11.97 kB / 0.5453 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.1305, allocations: 135.9 kB / 0.5454 GB, free: 1.719 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1305, allocations: 0 / 0.5454 GB, free: 1.719 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1305, allocations: 0 / 0.5454 GB, free: 1.719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1305, allocations: 0 / 0.5454 GB, free: 1.719 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.000431/0.131, allocations: 343.3 kB / 0.5458 GB, free: 1.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.131, allocations: 8.031 kB / 0.5458 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.348e-05/0.131, allocations: 34.75 kB / 0.5458 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.701e-05/0.1311, allocations: 4.922 kB / 0.5458 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.1312, allocations: 160.4 kB / 0.546 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1312, allocations: 384 / 0.546 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.1312, allocations: 4.375 kB / 0.546 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.1313, allocations: 45.75 kB / 0.546 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1313, allocations: 0 / 0.546 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.1314, allocations: 4 kB / 0.546 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1314, allocations: 3.984 kB / 0.546 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.999e-05/0.1314, allocations: 4 kB / 0.546 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003865/0.1318, allocations: 244.9 kB / 0.5463 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.791e-05/0.1318, allocations: 22.52 kB / 0.5463 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.554e-05/0.1318, allocations: 4.859 kB / 0.5463 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.1319, allocations: 0 / 0.5463 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.1319, allocations: 34.56 kB / 0.5463 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.1319, allocations: 4.062 kB / 0.5463 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001466/0.132, allocations: 37.66 kB / 0.5464 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.1321, allocations: 55.39 kB / 0.5464 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.882e-05/0.1322, allocations: 93.86 kB / 0.5465 GB, free: 444 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.1322, allocations: 29.64 kB / 0.5465 GB, free: 408 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.555e-05/0.1322, allocations: 96.33 kB / 0.5466 GB, free: 308 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.683e-06/0.1322, allocations: 4 kB / 0.5466 GB, free: 304 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.1323, allocations: 9.719 kB / 0.5466 GB, free: 288 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1324, allocations: 326.7 kB / 0.5469 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.719e-05/0.1325, allocations: 4 kB / 0.5469 GB, free: 15.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.474e-05/0.1325, allocations: 18.58 kB / 0.547 GB, free: 15.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.182e-05/0.1325, allocations: 26.58 kB / 0.547 GB, free: 15.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1325, allocations: 3.938 kB / 0.547 GB, free: 15.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.232e-05/0.1326, allocations: 49.62 kB / 0.547 GB, free: 15.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.1326, allocations: 4 kB / 0.547 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1326, allocations: 3.938 kB / 0.5471 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1326, allocations: 4 kB / 0.5471 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.512e-05/0.1327, allocations: 4 kB / 0.5471 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1327, allocations: 8.078 kB / 0.5471 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.103e-05/0.1327, allocations: 7.891 kB / 0.5471 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.1327, allocations: 4 kB / 0.5471 GB, free: 15.79 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 8.044e-05/0.1328, allocations: 113.8 kB / 0.5472 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.1328, allocations: 4 kB / 0.5472 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.1329, allocations: 44.75 kB / 0.5472 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1329, allocations: 4.031 kB / 0.5472 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1329, allocations: 0 / 0.5472 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-06/0.1329, allocations: 0 / 0.5472 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.1331, allocations: 153.6 kB / 0.5474 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.1331, allocations: 4 kB / 0.5474 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1331, allocations: 0 / 0.5474 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.1331, allocations: 0 / 0.5474 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1331, allocations: 3.984 kB / 0.5474 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1331, allocations: 0 / 0.5474 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1331, allocations: 0 / 0.5474 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.1332, allocations: 135.5 kB / 0.5475 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.54e-05/0.1333, allocations: 77.11 kB / 0.5476 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.1333, allocations: 4 kB / 0.5476 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.44e-05/0.1334, allocations: 3.984 kB / 0.5476 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.143e-05/0.1334, allocations: 0 / 0.5476 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.1334, allocations: 0 / 0.5476 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.154e-05/0.1334, allocations: 83.22 kB / 0.5477 GB, free: 15.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1334, allocations: 4.125 kB / 0.5477 GB, free: 15.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.1337, allocations: 43.88 kB / 0.5477 GB, free: 15.03 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.0005872/0.1343, allocations: 0.7007 MB / 0.5484 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.218e-05/0.1344, allocations: 11.94 kB / 0.5484 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1344, allocations: 4.219 kB / 0.5484 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.61e-05/0.1344, allocations: 29.7 kB / 0.5485 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002011/0.1346, allocations: 5.719 kB / 0.5485 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004003/0.135, allocations: 122.6 kB / 0.5486 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.1354, allocations: 0.6766 MB / 0.5492 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.464e-05/0.1354, allocations: 8.078 kB / 0.5492 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.1354, allocations: 15.38 kB / 0.5493 GB, free: 13.36 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1354, allocations: 4.062 kB / 0.5493 GB, free: 13.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.1565, allocations: 1.841 MB / 0.5511 GB, free: 11.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.669/7.825, allocations: 3.75 kB / 0.5511 GB, free: 11.6 MB / 414.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.74335800204426]