Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,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.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,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.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 177 kB / 17.06 MB, free: 5.094 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.305/1.305, allocations: 223.2 MB / 241 MB, free: 10.16 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.001042/0.001042, allocations: 106 kB / 292.2 MB, free: 10.7 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.3045/0.3045, allocations: 44.21 MB / 387.5 MB, free: 38.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003324, allocations: 12 kB / 459.9 MB, free: 1.766 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3179, allocations: 61.9 MB / 0.5096 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.428, allocations: 85.47 MB / 0.593 GB, free: 9.707 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.4283, allocations: 71.92 kB / 0.5931 GB, free: 9.641 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004994/0.4333, allocations: 1.79 MB / 0.5948 GB, free: 7.852 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.4333, allocations: 4 kB / 0.5948 GB, free: 7.848 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.4334, allocations: 4 kB / 0.5948 GB, free: 7.844 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.0003644/0.4337, allocations: 359.2 kB / 0.5952 GB, free: 7.445 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4338, allocations: 8.031 kB / 0.5952 GB, free: 7.438 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.537e-05/0.4338, allocations: 7.906 kB / 0.5952 GB, free: 7.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.434, allocations: 171 kB / 0.5954 GB, free: 7.223 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.434, allocations: 4 kB / 0.5954 GB, free: 7.219 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.434, allocations: 4 kB / 0.5954 GB, free: 7.215 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.4342, allocations: 53.62 kB / 0.5954 GB, free: 7.156 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.4342, allocations: 7.984 kB / 0.5954 GB, free: 7.148 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.4342, allocations: 4 kB / 0.5954 GB, free: 7.145 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.4342, allocations: 0 / 0.5954 GB, free: 7.145 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.608e-05/0.4343, allocations: 23.98 kB / 0.5955 GB, free: 7.121 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001875/0.4345, allocations: 169.6 kB / 0.5956 GB, free: 6.906 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.4347, allocations: 66.47 kB / 0.5957 GB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002216/0.4349, allocations: 113.1 kB / 0.5958 GB, free: 6.703 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.435, allocations: 38.56 kB / 0.5958 GB, free: 6.656 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.435, allocations: 0 / 0.5958 GB, free: 6.656 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.03929/0.4743, allocations: 2.813 MB / 0.5986 GB, free: 3.809 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.4743, allocations: 51.69 kB / 0.5986 GB, free: 3.746 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.235e-05/0.4744, allocations: 93 kB / 0.5987 GB, free: 3.648 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.4745, allocations: 33.7 kB / 0.5987 GB, free: 3.609 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.284e-05/0.4745, allocations: 84.08 kB / 0.5988 GB, free: 3.523 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.346e-05/0.4746, allocations: 67.08 kB / 0.5989 GB, free: 3.457 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.4746, allocations: 4 kB / 0.5989 GB, free: 3.453 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.253e-05/0.4747, allocations: 318.8 kB / 0.5992 GB, free: 3.133 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.4751, allocations: 187.9 kB / 0.5994 GB, free: 2.949 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003504/0.4754, allocations: 195.8 kB / 0.5996 GB, free: 2.758 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000495/0.4759, allocations: 222.3 kB / 0.5998 GB, free: 2.543 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.476, allocations: 0 / 0.5998 GB, free: 2.543 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001002/0.477, allocations: 493.3 kB / 0.6002 GB, free: 2.055 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.477, allocations: 4 kB / 0.6002 GB, free: 2.051 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.477, allocations: 0 / 0.6002 GB, free: 2.051 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.477, allocations: 4 kB / 0.6003 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004182/0.4775, allocations: 79.92 kB / 0.6003 GB, free: 1.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.4775, allocations: 7.938 kB / 0.6003 GB, free: 1.961 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.4777, allocations: 27.97 kB / 0.6004 GB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.4778, allocations: 12 kB / 0.6004 GB, free: 1.922 MB / 410.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.0001341/0.4779, allocations: 130.3 kB / 0.6005 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.626e-05/0.4779, allocations: 7.906 kB / 0.6005 GB, free: 1.777 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001253/0.4792, allocations: 0.5697 MB / 0.6011 GB, free: 1.203 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.4792, allocations: 4 kB / 0.6011 GB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4792, allocations: 0 / 0.6011 GB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4792, allocations: 3.984 kB / 0.6011 GB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.4814, allocations: 0.939 MB / 0.602 GB, free: 196 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4814, allocations: 8.188 kB / 0.602 GB, free: 188 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.4817, allocations: 75.89 kB / 0.6021 GB, free: 112 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.4818, allocations: 4 kB / 0.6021 GB, free: 108 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.4818, allocations: 19.98 kB / 0.6021 GB, free: 88 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.4818, allocations: 3.953 kB / 0.6021 GB, free: 84 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4818, allocations: 4 kB / 0.6021 GB, free: 80 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009251/0.4828, allocations: 0.5467 MB / 0.6026 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.4828, allocations: 89 kB / 0.6027 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.4829, allocations: 12 kB / 0.6027 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.4831, allocations: 19.98 kB / 0.6027 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.081e-05/0.4831, allocations: 19.94 kB / 0.6028 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.4832, allocations: 19.98 kB / 0.6028 GB, free: 15.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.066e-05/0.4832, allocations: 87.28 kB / 0.6029 GB, free: 15.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4832, allocations: 0 / 0.6029 GB, free: 15.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001003/0.4842, allocations: 343.7 kB / 0.6032 GB, free: 14.86 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.001477/0.4857, allocations: 274.8 kB / 0.6035 GB, free: 14.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008148/0.4865, allocations: 370.3 kB / 0.6038 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4865, allocations: 0 / 0.6038 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.4869, allocations: 164.2 kB / 0.604 GB, free: 14.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001643/0.4871, allocations: 19.83 kB / 0.604 GB, free: 14.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.4884, allocations: 492 kB / 0.6045 GB, free: 13.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.4886, allocations: 0.7006 MB / 0.6051 GB, free: 12.79 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003662/0.489, allocations: 92.88 kB / 0.6052 GB, free: 12.69 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.4892, allocations: 51.41 kB / 0.6053 GB, free: 12.64 MB / 426.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4892, allocations: 0 / 0.6053 GB, free: 12.64 MB / 426.7 MB Notification: Performance of Templates: time 0.01423/0.5035, allocations: 7.625 MB / 0.6127 GB, free: 5.098 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches