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.001473/0.001473, allocations: 170.4 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.47/1.47, allocations: 221.5 MB / 230.7 MB, free: 7.562 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.0009477/0.0009476, allocations: 92.92 kB / 281.6 MB, free: 5.32 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.192/0.192, allocations: 44.16 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.475e-05/1.479e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1209, allocations: 61.92 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3964/0.5174, allocations: 84.73 MB / 0.5774 GB, free: 11.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.5177, allocations: 63.97 kB / 0.5775 GB, free: 11.74 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005181/0.5229, allocations: 1.768 MB / 0.5792 GB, free: 9.977 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.5229, allocations: 0 / 0.5792 GB, free: 9.977 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.5229, allocations: 7.828 kB / 0.5792 GB, free: 9.973 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003373/0.5233, allocations: 358.4 kB / 0.5795 GB, free: 9.578 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.5233, allocations: 15.92 kB / 0.5796 GB, free: 9.562 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.5234, allocations: 7.906 kB / 0.5796 GB, free: 9.555 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.5235, allocations: 163 kB / 0.5797 GB, free: 9.355 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.5235, allocations: 6 kB / 0.5797 GB, free: 9.352 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.5235, allocations: 0 / 0.5797 GB, free: 9.352 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001194/0.5237, allocations: 31.92 kB / 0.5798 GB, free: 9.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.901e-05/0.5238, allocations: 45.69 kB / 0.5798 GB, free: 9.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.5238, allocations: 4 kB / 0.5798 GB, free: 9.266 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.5238, allocations: 4 kB / 0.5798 GB, free: 9.262 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.5238, allocations: 0 / 0.5798 GB, free: 9.262 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.524, allocations: 150.1 kB / 0.58 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.5242, allocations: 50.84 kB / 0.58 GB, free: 9.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.456e-05/0.5242, allocations: 28.75 kB / 0.58 GB, free: 8.988 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/0.5245, allocations: 113.1 kB / 0.5801 GB, free: 8.859 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.5245, allocations: 34.56 kB / 0.5802 GB, free: 8.816 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.012e-06/0.5245, allocations: 0 / 0.5802 GB, free: 8.816 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.03489/0.5594, allocations: 2.089 MB / 0.5822 GB, free: 6.691 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.5595, allocations: 55.41 kB / 0.5823 GB, free: 6.625 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.867e-05/0.5596, allocations: 101 kB / 0.5824 GB, free: 6.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.5596, allocations: 25.7 kB / 0.5824 GB, free: 6.488 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.138e-05/0.5597, allocations: 84.14 kB / 0.5825 GB, free: 6.402 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.259e-05/0.5598, allocations: 62.06 kB / 0.5825 GB, free: 6.344 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-05/0.5598, allocations: 0 / 0.5825 GB, free: 6.344 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.5599, allocations: 322.8 kB / 0.5828 GB, free: 6.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.5601, allocations: 132 kB / 0.583 GB, free: 5.891 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.5603, allocations: 136 kB / 0.5831 GB, free: 5.758 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004847/0.5608, allocations: 205.3 kB / 0.5833 GB, free: 5.559 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.5608, allocations: 0 / 0.5833 GB, free: 5.559 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000774/0.5616, allocations: 411.3 kB / 0.5837 GB, free: 5.152 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.5616, allocations: 8 kB / 0.5837 GB, free: 5.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.5616, allocations: 0 / 0.5837 GB, free: 5.145 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.5616, allocations: 4 kB / 0.5837 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.562, allocations: 71.94 kB / 0.5838 GB, free: 5.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.562, allocations: 4 kB / 0.5838 GB, free: 5.066 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.5622, allocations: 27.97 kB / 0.5838 GB, free: 5.039 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.931e-05/0.5623, allocations: 19.94 kB / 0.5838 GB, free: 5.02 MB / 394.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 () * 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.000104/0.5624, allocations: 105 kB / 0.5839 GB, free: 4.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.5624, allocations: 11.86 kB / 0.5839 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.5634, allocations: 494.1 kB / 0.5844 GB, free: 4.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.5635, allocations: 4 kB / 0.5844 GB, free: 4.406 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.5635, allocations: 0 / 0.5844 GB, free: 4.406 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.5635, allocations: 3.938 kB / 0.5844 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.5654, allocations: 0.847 MB / 0.5852 GB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5654, allocations: 4 kB / 0.5852 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002852/0.5657, allocations: 76.06 kB / 0.5853 GB, free: 3.414 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.5657, allocations: 8 kB / 0.5853 GB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.5657, allocations: 11.98 kB / 0.5853 GB, free: 3.395 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.5657, allocations: 4.188 kB / 0.5853 GB, free: 3.391 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5657, allocations: 0 / 0.5853 GB, free: 3.391 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007339/0.5665, allocations: 499.2 kB / 0.5858 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.5e-05/0.5665, allocations: 85.02 kB / 0.5859 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.5666, allocations: 4 kB / 0.5859 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.5668, allocations: 27.97 kB / 0.5859 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.469e-05/0.5668, allocations: 11.98 kB / 0.5859 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.5669, allocations: 23.94 kB / 0.5859 GB, free: 2.664 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.957e-05/0.5669, allocations: 95.47 kB / 0.586 GB, free: 2.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5669, allocations: 0 / 0.586 GB, free: 2.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001032/0.568, allocations: 335.7 kB / 0.5864 GB, free: 2.242 MB / 394.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 () * 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.001233/0.5692, allocations: 254.8 kB / 0.5866 GB, free: 1.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004947/0.5697, allocations: 270.3 kB / 0.5869 GB, free: 1.719 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.5697, allocations: 0 / 0.5869 GB, free: 1.719 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.5699, allocations: 115.8 kB / 0.587 GB, free: 1.605 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.5701, allocations: 8.375 kB / 0.587 GB, free: 1.598 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.5712, allocations: 349.3 kB / 0.5873 GB, free: 1.215 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.5715, allocations: 0.7003 MB / 0.588 GB, free: 500 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003964/0.5719, allocations: 92.88 kB / 0.5881 GB, free: 400 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.5721, allocations: 51.41 kB / 0.5881 GB, free: 348 kB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5721, allocations: 0 / 0.5881 GB, free: 348 kB / 394.7 MB Notification: Performance of Templates: time 0.01537/0.5874, allocations: 7.658 MB / 0.5956 GB, free: 8.727 MB / 410.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