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.001156/0.001156, allocations: 95.02 kB / 17 MB, free: 6.418 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.001406/0.001406, allocations: 188.6 kB / 17.89 MB, free: 5.945 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.375/1.375, allocations: 223.3 MB / 241.9 MB, free: 324 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.1984/0.1984, allocations: 44.25 MB / 337.3 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003797, allocations: 9.406 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1184, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005435/0.1189, allocations: 258.7 kB / 471.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005636/0.1195, allocations: 340.9 kB / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.116e-05/0.1196, allocations: 0 / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.296e-05/0.1196, allocations: 3.938 kB / 472.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.317e-05/0.1196, allocations: 4 kB / 472.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.1199, allocations: 79.78 kB / 472.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.594e-05/0.12, allocations: 23.92 kB / 472.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.712e-05/0.12, allocations: 0 / 472.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.055e-05/0.1201, allocations: 8 kB / 472.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.919e-05/0.1201, allocations: 15.92 kB / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.1201, allocations: 0 / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.1203, allocations: 115.9 kB / 472.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.892e-05/0.1204, allocations: 11.88 kB / 472.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.233e-05/0.1204, allocations: 33.7 kB / 472.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.1205, allocations: 55.91 kB / 472.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1205, allocations: 0 / 472.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1205, allocations: 0 / 472.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.1205, allocations: 0 / 472.5 MB, free: 12.78 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.0003599/0.1209, allocations: 363.5 kB / 472.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.1209, allocations: 8.031 kB / 472.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.657e-05/0.121, allocations: 4 kB / 472.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.1211, allocations: 178.8 kB / 473.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1211, allocations: 8 kB / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.1211, allocations: 4 kB / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.1212, allocations: 57.62 kB / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1213, allocations: 0 / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.1213, allocations: 0 / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1213, allocations: 0 / 473.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.37e-05/0.1213, allocations: 31.92 kB / 473.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.1215, allocations: 169.7 kB / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.1217, allocations: 54.56 kB / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.55e-05/0.1218, allocations: 28.83 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002453/0.122, allocations: 117.4 kB / 473.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.1221, allocations: 46.44 kB / 473.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.042e-06/0.1221, allocations: 0 / 473.6 MB, free: 11.55 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.03539/0.1575, allocations: 2.818 MB / 476.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.1575, allocations: 59.41 kB / 476.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.337e-05/0.1576, allocations: 93.86 kB / 476.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.1577, allocations: 33.7 kB / 476.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.156e-05/0.1577, allocations: 84.12 kB / 476.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.306e-05/0.1578, allocations: 59.11 kB / 476.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.1578, allocations: 4 kB / 476.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.158, allocations: 318.8 kB / 477 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003777/0.1584, allocations: 191.9 kB / 477.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003696/0.1588, allocations: 190 kB / 477.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.1593, allocations: 219.9 kB / 477.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1593, allocations: 0 / 477.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001038/0.1604, allocations: 0.4885 MB / 478.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.1604, allocations: 4 kB / 478.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1604, allocations: 0 / 478.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1604, allocations: 4 kB / 478.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.1608, allocations: 75.94 kB / 478.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.1608, allocations: 8 kB / 478.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.161, allocations: 23.97 kB / 478.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.1611, allocations: 19.98 kB / 478.2 MB, free: 6.797 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001239/0.1612, allocations: 118.3 kB / 478.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.1612, allocations: 12.33 kB / 478.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.1625, allocations: 0.5683 MB / 478.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1625, allocations: 4 kB / 478.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1626, allocations: 0 / 478.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1626, allocations: 3.984 kB / 478.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.1646, allocations: 0.9504 MB / 479.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.1647, allocations: 7.938 kB / 479.9 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002926/0.165, allocations: 72.14 kB / 480 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.165, allocations: 4 kB / 480 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.165, allocations: 20.23 kB / 480 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.165, allocations: 4 kB / 480 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.165, allocations: 7.938 kB / 480 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.1659, allocations: 0.4925 MB / 480.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.026e-05/0.166, allocations: 89 kB / 480.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.166, allocations: 8 kB / 480.6 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.1662, allocations: 19.98 kB / 480.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.1663, allocations: 27.88 kB / 480.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.1663, allocations: 15.98 kB / 480.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.608e-05/0.1664, allocations: 83.28 kB / 480.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1664, allocations: 0 / 480.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008595/0.1672, allocations: 316 kB / 481 MB, free: 3.852 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 (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.001219/0.1685, allocations: 235 kB / 481.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000817/0.1693, allocations: 374.3 kB / 481.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1693, allocations: 0 / 481.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003435/0.1696, allocations: 160.2 kB / 481.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.1699, allocations: 14.34 kB / 481.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.1712, allocations: 484.2 kB / 482.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.1714, allocations: 0.7006 MB / 483 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003786/0.1718, allocations: 92.89 kB / 483.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/0.172, allocations: 51.39 kB / 483.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.172, allocations: 0 / 483.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of Templates: time 0.02271/0.1947, allocations: 17.48 MB / 0.4889 GB, free: 244 kB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/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