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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009364/0.0009365, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.5 MB / 230.7 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008944/0.0008944, allocations: 81.77 kB / 281.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1929/0.1929, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.667e-05/1.684e-05, allocations: 224 / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.132, allocations: 61.91 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3699/0.5019, allocations: 85.7 MB / 0.5784 GB, free: 10.85 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.5022, allocations: 63.97 kB / 0.5784 GB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02613/0.5283, allocations: 8.279 MB / 0.5865 GB, free: 2.516 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.5284, allocations: 0 / 0.5865 GB, free: 2.516 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.5284, allocations: 4 kB / 0.5865 GB, free: 2.512 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.0004037/0.5288, allocations: 338.3 kB / 0.5868 GB, free: 2.137 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.5289, allocations: 19.97 kB / 0.5868 GB, free: 2.117 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.5289, allocations: 0 / 0.5868 GB, free: 2.117 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.529, allocations: 159.1 kB / 0.587 GB, free: 1.922 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.5291, allocations: 0 / 0.587 GB, free: 1.922 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.5291, allocations: 7.953 kB / 0.587 GB, free: 1.914 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.661e-05/0.5292, allocations: 7.938 kB / 0.587 GB, free: 1.906 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.604e-05/0.5293, allocations: 41.69 kB / 0.5871 GB, free: 1.859 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.5293, allocations: 0 / 0.5871 GB, free: 1.859 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.5293, allocations: 0 / 0.5871 GB, free: 1.859 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.5293, allocations: 0 / 0.5871 GB, free: 1.859 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003793/0.5297, allocations: 217.5 kB / 0.5873 GB, free: 1.609 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.892e-05/0.5298, allocations: 14.64 kB / 0.5873 GB, free: 1.586 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.816e-05/0.5298, allocations: 12.86 kB / 0.5873 GB, free: 1.57 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.5298, allocations: 4 kB / 0.5873 GB, free: 1.566 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/0.5299, allocations: 34.5 kB / 0.5873 GB, free: 1.523 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.5299, allocations: 0 / 0.5873 GB, free: 1.523 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002206/0.5301, allocations: 37.73 kB / 0.5874 GB, free: 1.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.5302, allocations: 51.41 kB / 0.5874 GB, free: 1.418 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.5303, allocations: 89 kB / 0.5875 GB, free: 1.324 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.5303, allocations: 25.86 kB / 0.5875 GB, free: 1.293 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.325e-05/0.5304, allocations: 92.05 kB / 0.5876 GB, free: 1.199 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.663e-06/0.5304, allocations: 3.906 kB / 0.5876 GB, free: 1.195 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.5304, allocations: 0 / 0.5876 GB, free: 1.195 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.5305, allocations: 314.8 kB / 0.5879 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-06/0.5305, allocations: 4 kB / 0.5879 GB, free: 0.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.546e-05/0.5306, allocations: 18.58 kB / 0.5879 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.383e-05/0.5306, allocations: 12 kB / 0.5879 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5306, allocations: 3.938 kB / 0.5879 GB, free: 0.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.769e-05/0.5307, allocations: 49.58 kB / 0.588 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.5308, allocations: 4.75 kB / 0.588 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.5308, allocations: 4 kB / 0.588 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.5308, allocations: 0 / 0.588 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.489e-05/0.5309, allocations: 7.938 kB / 0.588 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.5309, allocations: 0 / 0.588 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.899e-05/0.5309, allocations: 96 / 0.588 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-06/0.5309, allocations: 8 kB / 0.588 GB, free: 0.7539 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 () * 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 6.896e-05/0.531, allocations: 103.2 kB / 0.5881 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.531, allocations: 11.89 kB / 0.5881 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001356/0.5312, allocations: 53.33 kB / 0.5882 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.5312, allocations: 96 / 0.5882 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.015e-05/0.5312, allocations: 7.984 kB / 0.5882 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.5312, allocations: 32 / 0.5882 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.5313, allocations: 130.2 kB / 0.5883 GB, free: 416 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.5314, allocations: 4 kB / 0.5883 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.5314, allocations: 0 / 0.5883 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.5314, allocations: 0 / 0.5883 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.5314, allocations: 3.953 kB / 0.5883 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5314, allocations: 3.938 kB / 0.5883 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5314, allocations: 0 / 0.5883 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.5315, allocations: 135.5 kB / 0.5885 GB, free: 252 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.04e-05/0.5316, allocations: 81.11 kB / 0.5885 GB, free: 152 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.5316, allocations: 0 / 0.5885 GB, free: 152 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.653e-05/0.5317, allocations: 3.953 kB / 0.5885 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.53e-05/0.5317, allocations: 0 / 0.5885 GB, free: 148 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.5317, allocations: 4 kB / 0.5885 GB, free: 144 kB / 394.7 MB Notification: Performance of sorting global known variables: time 4.034e-05/0.5317, allocations: 75.28 kB / 0.5886 GB, free: 68 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5317, allocations: 0 / 0.5886 GB, free: 68 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003118/0.5321, allocations: 51.92 kB / 0.5887 GB, free: 16 kB / 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 () * 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.0003009/0.5324, allocations: 151.3 kB / 0.5888 GB, free: 15.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.68e-05/0.5325, allocations: 41.62 kB / 0.5888 GB, free: 15.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.5325, allocations: 0 / 0.5888 GB, free: 15.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.818e-05/0.5325, allocations: 29.64 kB / 0.5889 GB, free: 15.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.5326, allocations: 5.25 kB / 0.5889 GB, free: 15.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001769/0.5328, allocations: 49.77 kB / 0.5889 GB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.5331, allocations: 0.6768 MB / 0.5896 GB, free: 15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.96e-05/0.5331, allocations: 4.25 kB / 0.5896 GB, free: 14.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.256e-05/0.5331, allocations: 11.44 kB / 0.5896 GB, free: 14.98 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5332, allocations: 0 / 0.5896 GB, free: 14.98 MB / 410.7 MB Notification: Performance of Templates: time 0.002869/0.536, allocations: 0.8212 MB / 0.5904 GB, free: 14.16 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches