Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 105.6 kB / 17.03 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 192.1 kB / 17.96 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.1 MB / 223.8 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1965/0.1965, allocations: 43.52 MB / 314.7 MB, free: 480 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 69.92 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0955/0.09738, allocations: 57.79 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00167/0.09909, allocations: 0.5372 MB / 442.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005456/0.09966, allocations: 363.2 kB / 442.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.519e-05/0.0997, allocations: 4 kB / 442.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.485e-05/0.09972, allocations: 3.938 kB / 442.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.894e-05/0.09977, allocations: 3.938 kB / 442.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003971/0.1002, allocations: 115.5 kB / 443 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.533e-05/0.1002, allocations: 27.91 kB / 443 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.23e-05/0.1003, allocations: 4 kB / 443 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.09e-05/0.1003, allocations: 11.94 kB / 443 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.257e-05/0.1004, allocations: 23.91 kB / 443 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.1004, allocations: 0 / 443 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.1006, allocations: 115.9 kB / 443.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.1006, allocations: 3.984 kB / 443.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.314e-05/0.1006, allocations: 19.86 kB / 443.2 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.1008, allocations: 95.81 kB / 443.3 MB, free: 4.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1008, allocations: 4 kB / 443.3 MB, free: 4.828 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1008, allocations: 0 / 443.3 MB, free: 4.828 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1008, allocations: 0 / 443.3 MB, free: 4.828 MB / 318.1 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.0003145/0.1011, allocations: 359.4 kB / 443.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.1012, allocations: 8.031 kB / 443.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.191e-05/0.1012, allocations: 12.94 kB / 443.7 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.606e-05/0.1013, allocations: 172.2 kB / 443.8 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.1013, allocations: 4.375 kB / 443.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.1013, allocations: 4.375 kB / 443.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000104/0.1014, allocations: 58.23 kB / 443.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1015, allocations: 4.125 kB / 443.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.1015, allocations: 3.938 kB / 443.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1015, allocations: 0 / 443.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.113e-05/0.1015, allocations: 31.92 kB / 443.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001247/0.1017, allocations: 169.7 kB / 444.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.1019, allocations: 54.55 kB / 444.1 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.98e-05/0.1019, allocations: 32.84 kB / 444.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002194/0.1021, allocations: 109.1 kB / 444.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.276e-05/0.1022, allocations: 30.84 kB / 444.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.163e-06/0.1022, allocations: 3.938 kB / 444.3 MB, free: 3.609 MB / 318.1 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.03909/0.1413, allocations: 2.581 MB / 446.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.1413, allocations: 51.41 kB / 446.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.425e-05/0.1414, allocations: 109.8 kB / 447.1 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.1415, allocations: 25.7 kB / 447.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.276e-05/0.1415, allocations: 84.14 kB / 447.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.499e-05/0.1416, allocations: 59.11 kB / 447.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1417, allocations: 53.69 kB / 447.3 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.1417, allocations: 330.7 kB / 447.6 MB, free: 248 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000309/0.1421, allocations: 179.9 kB / 447.8 MB, free: 68 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003538/0.1424, allocations: 175.1 kB / 447.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009817/0.1434, allocations: 416.7 kB / 448.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1434, allocations: 0 / 448.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009523/0.1444, allocations: 457.5 kB / 448.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1444, allocations: 8 kB / 448.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1444, allocations: 480 / 448.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1444, allocations: 4 kB / 448.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003587/0.1448, allocations: 71.94 kB / 448.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1448, allocations: 0 / 448.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.145, allocations: 23.97 kB / 448.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.1451, allocations: 15.94 kB / 448.9 MB, free: 14.9 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.1452, allocations: 133.6 kB / 449 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.1453, allocations: 7.906 kB / 449.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.1465, allocations: 0.5363 MB / 449.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1465, allocations: 4 kB / 449.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1465, allocations: 0 / 449.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1465, allocations: 3.984 kB / 449.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.1486, allocations: 0.885 MB / 450.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.1486, allocations: 4 kB / 450.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000272/0.1489, allocations: 59.95 kB / 450.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.1489, allocations: 4.188 kB / 450.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.149, allocations: 23.98 kB / 450.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.149, allocations: 0 / 450.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.149, allocations: 7.938 kB / 450.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000869/0.1499, allocations: 456.3 kB / 451 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.029e-05/0.1499, allocations: 85.02 kB / 451.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.742e-05/0.15, allocations: 7.984 kB / 451.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.1502, allocations: 23.98 kB / 451.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.508e-05/0.1502, allocations: 15.92 kB / 451.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.1502, allocations: 19.98 kB / 451.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.23e-05/0.1503, allocations: 87.22 kB / 451.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1503, allocations: 0 / 451.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007828/0.1511, allocations: 319.9 kB / 451.6 MB, free: 12.11 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001192/0.1523, allocations: 239 kB / 451.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007685/0.1531, allocations: 331.7 kB / 452.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1531, allocations: 4 kB / 452.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003271/0.1534, allocations: 147.8 kB / 452.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.1537, allocations: 15.98 kB / 452.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.1549, allocations: 418.6 kB / 452.7 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.1552, allocations: 0.7004 MB / 453.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002686/0.1554, allocations: 88.89 kB / 453.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.1556, allocations: 51.39 kB / 453.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.1556, allocations: 0 / 453.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of Templates: time 0.02066/0.1763, allocations: 17.78 MB / 471.3 MB, free: 8.238 MB / 350.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches