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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009371/0.0009372, allocations: 93.38 kB / 18.01 MB, free: 5.738 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.00103/0.00103, allocations: 176.8 kB / 18.91 MB, free: 4.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.3 MB / 242.9 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.19/0.19, allocations: 44.25 MB / 338.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002972/0.0002973, allocations: 8 kB / 411 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 61.92 MB / 472.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0006647/0.106, allocations: 266.8 kB / 473.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006905/0.1068, allocations: 388.6 kB / 473.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.833e-05/0.1068, allocations: 0 / 473.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.91e-05/0.1068, allocations: 3.938 kB / 473.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.033e-05/0.1068, allocations: 0 / 473.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.1072, allocations: 75.8 kB / 473.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.672e-05/0.1072, allocations: 23.97 kB / 473.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.1073, allocations: 4 kB / 473.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.307e-05/0.1073, allocations: 11.94 kB / 473.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.268e-05/0.1074, allocations: 19.92 kB / 473.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.1074, allocations: 0 / 473.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.1076, allocations: 119.9 kB / 473.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.425e-05/0.1076, allocations: 7.938 kB / 473.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.514e-05/0.1077, allocations: 41.62 kB / 473.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.1078, allocations: 63.89 kB / 473.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.1078, allocations: 7.938 kB / 473.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1078, allocations: 3.938 kB / 473.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1078, allocations: 0 / 473.9 MB, free: 12.35 MB / 350.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.000382/0.1082, allocations: 351.7 kB / 474.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1082, allocations: 12.03 kB / 474.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.1083, allocations: 0.9375 kB / 474.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.1084, allocations: 176.2 kB / 474.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1084, allocations: 4.375 kB / 474.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.1084, allocations: 4.375 kB / 474.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.1086, allocations: 54.19 kB / 474.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.1086, allocations: 192 / 474.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.1086, allocations: 7.922 kB / 474.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.1086, allocations: 4 kB / 474.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.286e-05/0.1087, allocations: 35.97 kB / 474.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.1089, allocations: 161.7 kB / 474.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.1091, allocations: 62.58 kB / 474.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5e-05/0.1091, allocations: 24.8 kB / 474.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002586/0.1094, allocations: 117.1 kB / 474.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.1094, allocations: 34.56 kB / 475 MB, free: 11.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.1094, allocations: 4 kB / 475 MB, free: 11.14 MB / 350.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.04561/0.155, allocations: 2.825 MB / 477.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.1551, allocations: 55.41 kB / 477.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.693e-05/0.1552, allocations: 101.8 kB / 477.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.1552, allocations: 29.7 kB / 478 MB, free: 8.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.866e-05/0.1553, allocations: 88.14 kB / 478 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.404e-05/0.1554, allocations: 59.56 kB / 478.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-05/0.1554, allocations: 25.72 kB / 478.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1555, allocations: 318.8 kB / 478.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/0.156, allocations: 187.9 kB / 478.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003877/0.1564, allocations: 199.8 kB / 478.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.1574, allocations: 455.3 kB / 479.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-06/0.1574, allocations: 0 / 479.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001039/0.1585, allocations: 493.3 kB / 479.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.1585, allocations: 4 kB / 479.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1585, allocations: 0 / 479.8 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1585, allocations: 4 kB / 479.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.1589, allocations: 79.88 kB / 479.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.1589, allocations: 4 kB / 479.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.1591, allocations: 23.98 kB / 479.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.1592, allocations: 15.98 kB / 479.9 MB, free: 6.121 MB / 350.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.0001257/0.1593, allocations: 125.8 kB / 480 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.1593, allocations: 7.906 kB / 480 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.1607, allocations: 0.568 MB / 480.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.1607, allocations: 4 kB / 480.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1607, allocations: 0 / 480.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1607, allocations: 0 / 480.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.1628, allocations: 0.966 MB / 481.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1628, allocations: 4.188 kB / 481.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002823/0.1631, allocations: 79.88 kB / 481.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1631, allocations: 0 / 481.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.1632, allocations: 19.98 kB / 481.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.1632, allocations: 4.25 kB / 481.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1632, allocations: 4 kB / 481.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009569/0.1641, allocations: 0.4949 MB / 482.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.481e-05/0.1642, allocations: 85.02 kB / 482.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.1642, allocations: 4 kB / 482.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.1644, allocations: 31.97 kB / 482.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.498e-05/0.1645, allocations: 15.98 kB / 482.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.1645, allocations: 15.98 kB / 482.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.355e-05/0.1646, allocations: 79.28 kB / 482.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1646, allocations: 0 / 482.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008784/0.1655, allocations: 320 kB / 482.7 MB, free: 3.176 MB / 350.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.001295/0.1668, allocations: 239.5 kB / 482.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008466/0.1676, allocations: 367.7 kB / 483.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1676, allocations: 0 / 483.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003639/0.168, allocations: 164.2 kB / 483.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.1683, allocations: 12 kB / 483.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.1696, allocations: 0.5057 MB / 484 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.1699, allocations: 0.6968 MB / 484.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.1701, allocations: 51.41 kB / 484.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1701, allocations: 0 / 484.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of Templates: time 0.009444/0.1795, allocations: 6.548 MB / 491.3 MB, free: 10.58 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches