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.001053/0.001053, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00151/0.002563, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001059/0.001059, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001307/0.002366, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9996/0.9996, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08899/1.089, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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.2342/0.2342, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0233/0.2575, allocations: 13.09 MB / 291.3 MB, free: 7.375 MB / 282.7 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: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 292.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.533e-05/1.674e-05, allocations: 3.844 kB / 292.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0009748/0.0009916, allocations: 0.5419 MB / 293.1 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.002229, allocations: 1.405 MB / 294.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.386e-05/0.002243, allocations: 4 kB / 294.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.757e-06/0.002247, allocations: 0 / 294.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.589e-06/0.002251, allocations: 0 / 294.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.002575, allocations: 163.5 kB / 294.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.04e-05/0.002615, allocations: 7.938 kB / 294.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.379e-05/0.002649, allocations: 12.42 kB / 294.7 MB, free: 4.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.279e-05/0.002682, allocations: 8 kB / 294.7 MB, free: 4.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.189e-05/0.002724, allocations: 0 / 294.7 MB, free: 4.172 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.092e-05/0.002735, allocations: 0 / 294.7 MB, free: 4.172 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003835/0.003118, allocations: 300.1 kB / 295 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.354e-05/0.003132, allocations: 7.938 kB / 295 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.408e-05/0.003146, allocations: 4 kB / 295 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.003352, allocations: 135.7 kB / 295.2 MB, free: 3.734 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.566e-05/0.003368, allocations: 0 / 295.2 MB, free: 3.734 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.003368, allocations: 0 / 295.2 MB, free: 3.734 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.003382, allocations: 0 / 295.2 MB, free: 3.734 MB / 282.7 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.0002863/0.003668, allocations: 252.5 kB / 295.4 MB, free: 3.465 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.789e-05/0.003696, allocations: 8.031 kB / 295.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.003719, allocations: 0.9375 kB / 295.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.597e-05/0.003775, allocations: 113.8 kB / 295.5 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.003786, allocations: 8.375 kB / 295.6 MB, free: 3.312 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.974e-06/0.003793, allocations: 384 / 295.6 MB, free: 3.312 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.956e-05/0.003882, allocations: 59.97 kB / 295.6 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.003889, allocations: 4.172 kB / 295.6 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-06/0.003895, allocations: 384 / 295.6 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.003901, allocations: 7.922 kB / 295.6 MB, free: 3.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.6e-05/0.003917, allocations: 7.938 kB / 295.6 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002027/0.00412, allocations: 145 kB / 295.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.857e-05/0.004149, allocations: 18.52 kB / 295.8 MB, free: 3.039 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.116e-05/0.00416, allocations: 8.922 kB / 295.8 MB, free: 3.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.004165, allocations: 4 kB / 295.8 MB, free: 3.023 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.004184, allocations: 30.56 kB / 295.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.004184, allocations: 0 / 295.8 MB, free: 2.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 8.102e-05/0.004265, allocations: 41.56 kB / 295.9 MB, free: 2.938 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.004289, allocations: 55.41 kB / 295.9 MB, free: 2.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.532e-05/0.004335, allocations: 99.22 kB / 296 MB, free: 2.762 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.045e-05/0.004345, allocations: 29.7 kB / 296.1 MB, free: 2.727 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.219e-05/0.004377, allocations: 88.09 kB / 296.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.805e-06/0.004385, allocations: 7.891 kB / 296.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.061e-05/0.004406, allocations: 17.95 kB / 296.2 MB, free: 2.605 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.234e-05/0.004468, allocations: 314.8 kB / 296.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.75e-06/0.004474, allocations: 4 kB / 296.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.515e-05/0.004489, allocations: 18.56 kB / 296.5 MB, free: 2.258 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.56e-05/0.004515, allocations: 30.5 kB / 296.5 MB, free: 2.219 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.004516, allocations: 0 / 296.5 MB, free: 2.219 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.265e-05/0.004559, allocations: 45.64 kB / 296.6 MB, free: 2.168 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.004569, allocations: 4 kB / 296.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.004574, allocations: 8.031 kB / 296.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/0.004583, allocations: 3.984 kB / 296.6 MB, free: 2.152 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.089e-05/0.004624, allocations: 12 kB / 296.6 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.614e-06/0.004626, allocations: 3.938 kB / 296.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.17e-05/0.004638, allocations: 0 / 296.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.004644, allocations: 4 kB / 296.6 MB, free: 2.133 MB / 282.7 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 4.549e-05/0.004689, allocations: 105.8 kB / 296.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.004701, allocations: 0 / 296.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.166e-05/0.004782, allocations: 52.78 kB / 296.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.004785, allocations: 0 / 296.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.004786, allocations: 0 / 296.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.004788, allocations: 0 / 296.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.462e-05/0.004862, allocations: 65.91 kB / 296.8 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.004867, allocations: 3.984 kB / 296.8 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.004867, allocations: 0 / 296.8 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-06/0.004873, allocations: 0 / 296.8 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.004874, allocations: 0 / 296.8 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-06/0.004876, allocations: 7.938 kB / 296.8 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.004878, allocations: 11.91 kB / 296.8 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.004878, allocations: 0 / 296.8 MB, free: 1.859 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.417e-05/0.004933, allocations: 127.5 kB / 297 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.091e-06/0.004939, allocations: 0 / 297 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.342e-05/0.004972, allocations: 0 / 297 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-06/0.004982, allocations: 3.938 kB / 297 MB, free: 1.715 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-06/0.004984, allocations: 0 / 297 MB, free: 1.715 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.885e-06/0.004992, allocations: 8.859 kB / 297 MB, free: 1.703 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004992, allocations: 0 / 297 MB, free: 1.703 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001669/0.005159, allocations: 47.92 kB / 297 MB, free: 1.656 MB / 282.7 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.000166/0.005325, allocations: 132.4 kB / 297.2 MB, free: 1.516 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 4.776e-05/0.005373, allocations: 20.88 kB / 297.2 MB, free: 1.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.005378, allocations: 4 kB / 297.2 MB, free: 1.488 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.957e-05/0.005398, allocations: 30.56 kB / 297.2 MB, free: 1.449 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.19e-05/0.00549, allocations: 4 kB / 297.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001418/0.005631, allocations: 101.2 kB / 297.3 MB, free: 1.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.528e-05/0.005657, allocations: 51.36 kB / 297.4 MB, free: 1.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.743e-05/0.005674, allocations: 4.25 kB / 297.4 MB, free: 1.246 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.708e-05/0.005711, allocations: 55.38 kB / 297.4 MB, free: 1.191 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.005712, allocations: 0 / 297.4 MB, free: 1.191 MB / 282.7 MB Notification: Performance of Templates: time 0.002364/0.008076, allocations: 1.273 MB / 298.7 MB, free: 15.93 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8166022738441825]