Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.2 MB / 241 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008243/0.0008242, allocations: 90.75 kB / 292.2 MB, free: 10.69 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.3658/0.3658, allocations: 44.21 MB / 387.5 MB, free: 38.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003289/0.000329, allocations: 8 kB / 459.9 MB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3721, allocations: 61.89 MB / 0.5095 GB, free: 37.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1158/0.4879, allocations: 85.67 MB / 0.5932 GB, free: 9.453 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4882, allocations: 67.94 kB / 0.5933 GB, free: 9.391 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009028/0.4972, allocations: 3.06 MB / 0.5963 GB, free: 6.332 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4973, allocations: 0 / 0.5963 GB, free: 6.332 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.4973, allocations: 0 / 0.5963 GB, free: 6.332 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004216/0.4977, allocations: 371.1 kB / 0.5966 GB, free: 5.922 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.4978, allocations: 8.031 kB / 0.5966 GB, free: 5.914 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.795e-05/0.4978, allocations: 7.906 kB / 0.5966 GB, free: 5.906 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.498, allocations: 171 kB / 0.5968 GB, free: 5.699 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.498, allocations: 11.95 kB / 0.5968 GB, free: 5.688 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.498, allocations: 0 / 0.5968 GB, free: 5.688 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.4982, allocations: 61.55 kB / 0.5969 GB, free: 5.621 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.4982, allocations: 4 kB / 0.5969 GB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.4982, allocations: 0 / 0.5969 GB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4982, allocations: 0 / 0.5969 GB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.446e-05/0.4983, allocations: 23.98 kB / 0.5969 GB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.4985, allocations: 173.6 kB / 0.5971 GB, free: 5.375 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.4987, allocations: 66.58 kB / 0.5971 GB, free: 5.301 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002401/0.4989, allocations: 109 kB / 0.5972 GB, free: 5.176 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.499, allocations: 34.56 kB / 0.5973 GB, free: 5.133 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.499, allocations: 0 / 0.5973 GB, free: 5.133 MB / 410.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1292/0.6282, allocations: 6.319 MB / 0.6034 GB, free: 14.78 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.6283, allocations: 55.41 kB / 0.6035 GB, free: 14.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.809e-05/0.6284, allocations: 93 kB / 0.6036 GB, free: 14.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.6285, allocations: 29.7 kB / 0.6036 GB, free: 14.58 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.6285, allocations: 88.08 kB / 0.6037 GB, free: 14.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.748e-05/0.6286, allocations: 59.09 kB / 0.6037 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.635e-05/0.6286, allocations: 8 kB / 0.6037 GB, free: 14.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.6288, allocations: 314.8 kB / 0.604 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005131/0.6293, allocations: 247.8 kB / 0.6043 GB, free: 13.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004947/0.6298, allocations: 247.8 kB / 0.6045 GB, free: 13.62 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.6308, allocations: 298.2 kB / 0.6048 GB, free: 13.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.6308, allocations: 0 / 0.6048 GB, free: 13.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001784/0.6326, allocations: 0.6378 MB / 0.6054 GB, free: 12.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.6327, allocations: 7.984 kB / 0.6054 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.6327, allocations: 0 / 0.6054 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.6327, allocations: 0 / 0.6054 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007017/0.6334, allocations: 123.8 kB / 0.6055 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.6334, allocations: 0 / 0.6055 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000482/0.6339, allocations: 27.97 kB / 0.6056 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.379e-05/0.634, allocations: 35.94 kB / 0.6056 GB, free: 12.5 MB / 426.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.0001489/0.6341, allocations: 122.8 kB / 0.6057 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-05/0.6342, allocations: 12.11 kB / 0.6057 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002114/0.6363, allocations: 0.7695 MB / 0.6065 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.6363, allocations: 4 kB / 0.6065 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.6363, allocations: 0 / 0.6065 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.6363, allocations: 11.92 kB / 0.6065 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004109/0.6405, allocations: 1.209 MB / 0.6077 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.6405, allocations: 0 / 0.6077 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005708/0.6411, allocations: 111.8 kB / 0.6078 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.6411, allocations: 0 / 0.6078 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.6411, allocations: 27.95 kB / 0.6078 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.6411, allocations: 0 / 0.6078 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.6411, allocations: 11.94 kB / 0.6078 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.6428, allocations: 0.6821 MB / 0.6085 GB, free: 9.391 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.6429, allocations: 88.95 kB / 0.6086 GB, free: 9.285 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/0.6429, allocations: 7.969 kB / 0.6086 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004505/0.6434, allocations: 31.97 kB / 0.6086 GB, free: 9.246 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.6434, allocations: 15.94 kB / 0.6086 GB, free: 9.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.6435, allocations: 35.95 kB / 0.6087 GB, free: 9.195 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.123e-05/0.6435, allocations: 83.27 kB / 0.6087 GB, free: 9.113 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6435, allocations: 0 / 0.6087 GB, free: 9.113 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001768/0.6453, allocations: 0.6286 MB / 0.6094 GB, free: 8.484 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.002729/0.6481, allocations: 350.5 kB / 0.6097 GB, free: 8.129 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.6493, allocations: 481.8 kB / 0.6102 GB, free: 7.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/0.6493, allocations: 4 kB / 0.6102 GB, free: 7.656 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005272/0.6499, allocations: 219.3 kB / 0.6104 GB, free: 7.445 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.6501, allocations: 8 kB / 0.6104 GB, free: 7.438 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.6527, allocations: 0.5935 MB / 0.611 GB, free: 6.797 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.6529, allocations: 0.7007 MB / 0.6116 GB, free: 6.066 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000542/0.6534, allocations: 125.1 kB / 0.6118 GB, free: 5.941 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.6538, allocations: 87.3 kB / 0.6118 GB, free: 5.855 MB / 426.7 MB Notification: Performance of SimCode: time 3.41e-07/0.6538, allocations: 0 / 0.6118 GB, free: 5.855 MB / 426.7 MB Notification: Performance of Templates: time 0.03664/0.6904, allocations: 20.26 MB / 0.6316 GB, free: 1.68 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches