Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002332/0.002339, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001107, allocations: 99.36 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2943/0.2943, allocations: 43.49 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.027e-05/2.026e-05, allocations: 8 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3978, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1585/0.5563, allocations: 84.6 MB / 0.5485 GB, free: 14.73 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.5567, allocations: 67.97 kB / 0.5486 GB, free: 14.66 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04669/0.6034, allocations: 8.189 MB / 0.5566 GB, free: 6.465 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6034, allocations: 4 kB / 0.5566 GB, free: 6.461 MB / 395.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.6035, allocations: 0 / 0.5566 GB, free: 6.461 MB / 395.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.0004469/0.6039, allocations: 338.4 kB / 0.5569 GB, free: 6.086 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.604, allocations: 12.03 kB / 0.5569 GB, free: 6.074 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.604, allocations: 11.97 kB / 0.5569 GB, free: 6.062 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.6042, allocations: 167 kB / 0.5571 GB, free: 5.859 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.6042, allocations: 0 / 0.5571 GB, free: 5.859 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.6042, allocations: 0 / 0.5571 GB, free: 5.859 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.318e-05/0.6043, allocations: 4 kB / 0.5571 GB, free: 5.855 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.269e-05/0.6044, allocations: 33.7 kB / 0.5571 GB, free: 5.816 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.6044, allocations: 0 / 0.5571 GB, free: 5.816 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.6044, allocations: 0 / 0.5571 GB, free: 5.816 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.6045, allocations: 0 / 0.5571 GB, free: 5.816 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.6046, allocations: 134.1 kB / 0.5573 GB, free: 5.648 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.155e-05/0.6047, allocations: 18.61 kB / 0.5573 GB, free: 5.621 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.166e-05/0.6047, allocations: 8.859 kB / 0.5573 GB, free: 5.609 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.6048, allocations: 4.062 kB / 0.5573 GB, free: 5.605 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.6048, allocations: 34.56 kB / 0.5573 GB, free: 5.562 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.613e-06/0.6048, allocations: 0 / 0.5573 GB, free: 5.562 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002048/0.605, allocations: 33.69 kB / 0.5573 GB, free: 5.523 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.6051, allocations: 59.34 kB / 0.5574 GB, free: 5.453 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.406e-05/0.6052, allocations: 85 kB / 0.5575 GB, free: 5.363 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.6052, allocations: 29.64 kB / 0.5575 GB, free: 5.328 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/0.6053, allocations: 150.7 kB / 0.5577 GB, free: 5.18 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.6054, allocations: 12 kB / 0.5577 GB, free: 5.168 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-06/0.6054, allocations: 0 / 0.5577 GB, free: 5.168 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.6056, allocations: 310.8 kB / 0.558 GB, free: 4.855 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.553e-05/0.6056, allocations: 0 / 0.558 GB, free: 4.855 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.219e-05/0.6057, allocations: 0 / 0.558 GB, free: 4.855 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.982e-05/0.6057, allocations: 4 kB / 0.558 GB, free: 4.852 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6058, allocations: 0 / 0.558 GB, free: 4.852 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001506/0.6059, allocations: 45.55 kB / 0.558 GB, free: 4.801 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.606, allocations: 8.094 kB / 0.558 GB, free: 4.793 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.606, allocations: 4 kB / 0.558 GB, free: 4.789 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.606, allocations: 0 / 0.558 GB, free: 4.789 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.663e-06/0.606, allocations: 0 / 0.558 GB, free: 4.789 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.606, allocations: 0 / 0.558 GB, free: 4.789 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.425e-05/0.6061, allocations: 0 / 0.558 GB, free: 4.789 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.6061, allocations: 3.938 kB / 0.558 GB, free: 4.785 MB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.064e-05/0.6062, allocations: 105 kB / 0.5581 GB, free: 4.676 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.6062, allocations: 3.953 kB / 0.5581 GB, free: 4.672 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002136/0.6064, allocations: 53.38 kB / 0.5582 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.6065, allocations: 0 / 0.5582 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.6065, allocations: 0 / 0.5582 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.6065, allocations: 0 / 0.5582 GB, free: 4.613 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.6066, allocations: 134.2 kB / 0.5583 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.495e-06/0.6066, allocations: 0 / 0.5583 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-06/0.6066, allocations: 0 / 0.5583 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.6067, allocations: 0 / 0.5583 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.6067, allocations: 3.953 kB / 0.5583 GB, free: 4.441 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.6067, allocations: 8.031 kB / 0.5583 GB, free: 4.434 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.6067, allocations: 0 / 0.5583 GB, free: 4.434 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.6068, allocations: 65.06 kB / 0.5584 GB, free: 4.352 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.833e-05/0.6069, allocations: 81.11 kB / 0.5585 GB, free: 4.254 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.6069, allocations: 0 / 0.5585 GB, free: 4.254 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.384e-05/0.607, allocations: 7.953 kB / 0.5585 GB, free: 4.246 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.403e-05/0.607, allocations: 32 / 0.5585 GB, free: 4.246 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.607, allocations: 4 kB / 0.5585 GB, free: 4.242 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.766e-05/0.6071, allocations: 79.28 kB / 0.5585 GB, free: 4.164 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6071, allocations: 0 / 0.5585 GB, free: 4.164 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004288/0.6076, allocations: 51.92 kB / 0.5586 GB, free: 4.113 MB / 395.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004095/0.608, allocations: 144.5 kB / 0.5587 GB, free: 3.961 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.6081, allocations: 37.62 kB / 0.5588 GB, free: 3.918 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.6081, allocations: 0 / 0.5588 GB, free: 3.918 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 2.881e-05/0.6082, allocations: 29.86 kB / 0.5588 GB, free: 3.883 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.6083, allocations: 4 kB / 0.5588 GB, free: 3.879 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002575/0.6086, allocations: 73.66 kB / 0.5589 GB, free: 3.777 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.6089, allocations: 0.6845 MB / 0.5595 GB, free: 3.066 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.524e-05/0.6089, allocations: 11.44 kB / 0.5596 GB, free: 3.055 MB / 395.1 MB Notification: Performance of SimCode: time 8.32e-07/0.6089, allocations: 0 / 0.5596 GB, free: 3.055 MB / 395.1 MB Notification: Performance of Templates: time 0.003895/0.6128, allocations: 1.005 MB / 0.5605 GB, free: 2.051 MB / 395.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches