Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002059/0.002058, allocations: 177.8 kB / 8.36 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 1.963/1.963, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001097/0.001097, allocations: 91.42 kB / 262.1 MB, free: 13.86 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.2905/0.2905, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.431e-05/2.432e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3922, allocations: 58.86 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.5501, allocations: 84.61 MB / 0.5485 GB, free: 14.7 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5505, allocations: 63.97 kB / 0.5486 GB, free: 14.64 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04584/0.5963, allocations: 8.199 MB / 0.5566 GB, free: 6.441 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.5964, allocations: 0 / 0.5566 GB, free: 6.441 MB / 395.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.5964, allocations: 0 / 0.5566 GB, free: 6.441 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004462/0.5969, allocations: 338.4 kB / 0.5569 GB, free: 6.066 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.5969, allocations: 12.03 kB / 0.5569 GB, free: 6.055 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.491e-05/0.597, allocations: 0 / 0.5569 GB, free: 6.055 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.5971, allocations: 174.9 kB / 0.5571 GB, free: 5.844 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.5971, allocations: 0 / 0.5571 GB, free: 5.844 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.5971, allocations: 0 / 0.5571 GB, free: 5.844 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.935e-05/0.5972, allocations: 8 kB / 0.5571 GB, free: 5.836 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.681e-05/0.5973, allocations: 33.7 kB / 0.5571 GB, free: 5.797 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.5974, allocations: 4 kB / 0.5571 GB, free: 5.793 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.5974, allocations: 0 / 0.5571 GB, free: 5.793 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.5974, allocations: 0 / 0.5571 GB, free: 5.793 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004052/0.5978, allocations: 221.5 kB / 0.5573 GB, free: 5.539 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.366e-05/0.5979, allocations: 18.52 kB / 0.5574 GB, free: 5.512 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.196e-05/0.5979, allocations: 16.92 kB / 0.5574 GB, free: 5.492 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.598, allocations: 0 / 0.5574 GB, free: 5.492 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.598, allocations: 30.56 kB / 0.5574 GB, free: 5.453 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.598, allocations: 0 / 0.5574 GB, free: 5.453 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002254/0.5982, allocations: 37.69 kB / 0.5574 GB, free: 5.41 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.5983, allocations: 51.41 kB / 0.5575 GB, free: 5.348 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.366e-05/0.5984, allocations: 85 kB / 0.5576 GB, free: 5.258 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.5984, allocations: 33.86 kB / 0.5576 GB, free: 5.219 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.575e-05/0.5985, allocations: 158.5 kB / 0.5578 GB, free: 5.062 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.986e-06/0.5985, allocations: 7.844 kB / 0.5578 GB, free: 5.055 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/0.5985, allocations: 0 / 0.5578 GB, free: 5.055 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.5987, allocations: 314.8 kB / 0.5581 GB, free: 4.738 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.682e-05/0.5987, allocations: 4 kB / 0.5581 GB, free: 4.734 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.02e-05/0.5988, allocations: 22.56 kB / 0.5581 GB, free: 4.703 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.149e-05/0.5988, allocations: 12 kB / 0.5581 GB, free: 4.691 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.5989, allocations: 0 / 0.5581 GB, free: 4.691 MB / 395.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000123/0.599, allocations: 45.62 kB / 0.5581 GB, free: 4.641 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.599, allocations: 4 kB / 0.5581 GB, free: 4.637 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/0.5991, allocations: 4 kB / 0.5582 GB, free: 4.633 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.5991, allocations: 0 / 0.5582 GB, free: 4.633 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.828e-05/0.5992, allocations: 4 kB / 0.5582 GB, free: 4.629 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.5992, allocations: 0 / 0.5582 GB, free: 4.629 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.882e-05/0.5992, allocations: 4.094 kB / 0.5582 GB, free: 4.625 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.5992, allocations: 11.94 kB / 0.5582 GB, free: 4.613 MB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * 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 8.906e-05/0.5993, allocations: 104.9 kB / 0.5583 GB, free: 4.504 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/0.5994, allocations: 0 / 0.5583 GB, free: 4.504 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.5995, allocations: 53.31 kB / 0.5583 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.5996, allocations: 0 / 0.5583 GB, free: 4.445 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5996, allocations: 4 kB / 0.5583 GB, free: 4.441 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.5996, allocations: 4.031 kB / 0.5583 GB, free: 4.438 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.5998, allocations: 130.2 kB / 0.5585 GB, free: 4.273 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5998, allocations: 0 / 0.5585 GB, free: 4.273 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.113e-06/0.5998, allocations: 4 kB / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.5999, allocations: 0 / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.5999, allocations: 0 / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.5999, allocations: 0 / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.5999, allocations: 0 / 0.5585 GB, free: 4.27 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001513/0.6, allocations: 131.6 kB / 0.5586 GB, free: 4.125 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.6001, allocations: 85.14 kB / 0.5587 GB, free: 4.023 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.6001, allocations: 7.984 kB / 0.5587 GB, free: 4.016 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.425e-05/0.6002, allocations: 0 / 0.5587 GB, free: 4.016 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.222e-05/0.6003, allocations: 3.938 kB / 0.5587 GB, free: 4.012 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.6003, allocations: 0 / 0.5587 GB, free: 4.012 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.124e-05/0.6003, allocations: 79.28 kB / 0.5588 GB, free: 3.934 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6003, allocations: 0 / 0.5588 GB, free: 3.934 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004904/0.6008, allocations: 51.92 kB / 0.5588 GB, free: 3.883 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.0003983/0.6013, allocations: 151.3 kB / 0.5589 GB, free: 3.723 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.6014, allocations: 29.7 kB / 0.559 GB, free: 3.688 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.6014, allocations: 0 / 0.559 GB, free: 3.688 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 3.296e-05/0.6014, allocations: 29.7 kB / 0.559 GB, free: 3.652 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.6016, allocations: 7.922 kB / 0.559 GB, free: 3.645 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002675/0.6019, allocations: 85.59 kB / 0.5591 GB, free: 3.531 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.6022, allocations: 0.6809 MB / 0.5598 GB, free: 2.824 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.822e-05/0.6023, allocations: 11.44 kB / 0.5598 GB, free: 2.812 MB / 395.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6023, allocations: 0 / 0.5598 GB, free: 2.812 MB / 395.1 MB Notification: Performance of Templates: time 0.003811/0.6061, allocations: 1.016 MB / 0.5608 GB, free: 1.797 MB / 395.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches