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.002195/0.002198, allocations: 184 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.937/1.937, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 92.66 kB / 270.9 MB, free: 8.402 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4984/0.4984, allocations: 43.56 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004689/0.0004689, allocations: 8 kB / 431.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1209, allocations: 58.85 MB / 490.2 MB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4511/0.572, allocations: 85.36 MB / 0.5621 GB, free: 1.254 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.5723, allocations: 74.92 kB / 0.5622 GB, free: 1.184 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04509/0.6174, allocations: 8.232 MB / 0.5702 GB, free: 8.977 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6175, allocations: 0 / 0.5702 GB, free: 8.977 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.6175, allocations: 0 / 0.5702 GB, free: 8.977 MB / 394.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.0003896/0.6179, allocations: 339.3 kB / 0.5705 GB, free: 8.598 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.618, allocations: 8.031 kB / 0.5705 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.282e-05/0.618, allocations: 0.625 kB / 0.5705 GB, free: 8.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.6181, allocations: 174.4 kB / 0.5707 GB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.6182, allocations: 4 kB / 0.5707 GB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.6182, allocations: 0 / 0.5707 GB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.6183, allocations: 37.69 kB / 0.5707 GB, free: 8.336 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.6183, allocations: 4 kB / 0.5707 GB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.6184, allocations: 0 / 0.5707 GB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.6184, allocations: 3.938 kB / 0.5707 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.688e-05/0.6184, allocations: 9.031 kB / 0.5707 GB, free: 8.32 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003795/0.6188, allocations: 245.6 kB / 0.571 GB, free: 8.035 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.149e-05/0.6189, allocations: 14.58 kB / 0.571 GB, free: 8.012 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.6189, allocations: 8.062 kB / 0.571 GB, free: 8.004 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.619, allocations: 34.56 kB / 0.571 GB, free: 7.961 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.663e-06/0.619, allocations: 0 / 0.571 GB, free: 7.961 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001657/0.6191, allocations: 43.66 kB / 0.5711 GB, free: 7.914 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.6192, allocations: 51.41 kB / 0.5711 GB, free: 7.852 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.55e-05/0.6193, allocations: 85 kB / 0.5712 GB, free: 7.762 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.6193, allocations: 25.7 kB / 0.5712 GB, free: 7.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.792e-05/0.6194, allocations: 166.7 kB / 0.5714 GB, free: 7.566 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.623e-06/0.6194, allocations: 0 / 0.5714 GB, free: 7.566 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-06/0.6194, allocations: 0 / 0.5714 GB, free: 7.566 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.6196, allocations: 318.8 kB / 0.5717 GB, free: 7.246 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.781e-05/0.6196, allocations: 4 kB / 0.5717 GB, free: 7.242 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.298e-05/0.6196, allocations: 18.58 kB / 0.5717 GB, free: 7.215 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.097e-05/0.6197, allocations: 11.94 kB / 0.5717 GB, free: 7.203 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.6197, allocations: 0 / 0.5717 GB, free: 7.203 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001041/0.6198, allocations: 57.53 kB / 0.5718 GB, free: 7.141 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.6198, allocations: 4 kB / 0.5718 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.6199, allocations: 3.938 kB / 0.5718 GB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.6199, allocations: 4.094 kB / 0.5718 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.741e-05/0.6199, allocations: 4 kB / 0.5718 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.62, allocations: 0 / 0.5718 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.45e-05/0.62, allocations: 3.984 kB / 0.5718 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.62, allocations: 8.094 kB / 0.5718 GB, free: 7.113 MB / 394.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): 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.788e-05/0.6201, allocations: 113.8 kB / 0.5719 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.6201, allocations: 3.984 kB / 0.5719 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.6203, allocations: 44.77 kB / 0.572 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.6203, allocations: 0 / 0.572 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.6203, allocations: 0 / 0.572 GB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.6203, allocations: 4 kB / 0.572 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.6205, allocations: 153.7 kB / 0.5721 GB, free: 6.738 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.6205, allocations: 0 / 0.5721 GB, free: 6.738 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.007e-06/0.6206, allocations: 4 kB / 0.5721 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.6206, allocations: 0 / 0.5721 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.6206, allocations: 0 / 0.5721 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6206, allocations: 0 / 0.5721 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.6206, allocations: 0 / 0.5721 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.6207, allocations: 139.5 kB / 0.5722 GB, free: 6.582 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/0.6208, allocations: 81.14 kB / 0.5723 GB, free: 6.484 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.6208, allocations: 0.75 kB / 0.5723 GB, free: 6.484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.436e-05/0.6209, allocations: 4 kB / 0.5723 GB, free: 6.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.472e-05/0.6209, allocations: 3.938 kB / 0.5723 GB, free: 6.477 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.6209, allocations: 0 / 0.5723 GB, free: 6.477 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.279e-05/0.621, allocations: 83.27 kB / 0.5724 GB, free: 6.395 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.621, allocations: 0 / 0.5724 GB, free: 6.395 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004353/0.6214, allocations: 51.94 kB / 0.5725 GB, free: 6.344 MB / 394.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 (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.0003785/0.6218, allocations: 151.2 kB / 0.5726 GB, free: 6.188 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001469/0.622, allocations: 37.64 kB / 0.5726 GB, free: 6.145 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.622, allocations: 4 kB / 0.5726 GB, free: 6.141 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.978e-05/0.622, allocations: 25.7 kB / 0.5727 GB, free: 6.109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001647/0.6222, allocations: 23.55 kB / 0.5727 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002524/0.6225, allocations: 106.7 kB / 0.5728 GB, free: 5.957 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.6228, allocations: 0.6734 MB / 0.5735 GB, free: 5.258 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.6228, allocations: 11.44 kB / 0.5735 GB, free: 5.25 MB / 394.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6228, allocations: 0 / 0.5735 GB, free: 5.25 MB / 394.7 MB Notification: Performance of Templates: time 0.003314/0.6261, allocations: 0.9894 MB / 0.5744 GB, free: 4.266 MB / 394.7 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