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.001164/0.001164, allocations: 93.33 kB / 16.98 MB, free: 5.938 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.001375/0.001375, allocations: 182.6 kB / 17.87 MB, free: 5.598 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.37/1.37, allocations: 223.2 MB / 241.8 MB, free: 384 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.1817/0.1817, allocations: 44.22 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003015, allocations: 9.031 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.11, allocations: 61.92 MB / 471.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0007662/0.1108, allocations: 254.8 kB / 471.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006977/0.1115, allocations: 349.2 kB / 472 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.717e-05/0.1115, allocations: 4 kB / 472 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.283e-05/0.1116, allocations: 3.938 kB / 472 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.652e-05/0.1116, allocations: 0 / 472 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.112, allocations: 67.78 kB / 472.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.944e-05/0.112, allocations: 15.98 kB / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.261e-05/0.1121, allocations: 4 kB / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.575e-05/0.1121, allocations: 15.92 kB / 472.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.305e-05/0.1122, allocations: 19.92 kB / 472.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.1122, allocations: 4 kB / 472.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.1124, allocations: 99.88 kB / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.703e-05/0.1125, allocations: 15.92 kB / 472.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.321e-05/0.1125, allocations: 29.64 kB / 472.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.1126, allocations: 67.84 kB / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1126, allocations: 4 kB / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1126, allocations: 0 / 472.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1126, allocations: 0 / 472.4 MB, free: 12.83 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.0004465/0.1131, allocations: 347.5 kB / 472.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1131, allocations: 12.03 kB / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.1132, allocations: 4 kB / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.1133, allocations: 174.9 kB / 472.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.1134, allocations: 0 / 472.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.1134, allocations: 7.938 kB / 472.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.1135, allocations: 53.64 kB / 473 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1135, allocations: 0 / 473 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1136, allocations: 0 / 473 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.1136, allocations: 4 kB / 473 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.895e-05/0.1136, allocations: 31.97 kB / 473 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.1138, allocations: 177.6 kB / 473.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.114, allocations: 58.55 kB / 473.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002579/0.1143, allocations: 113.1 kB / 473.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1143, allocations: 34.55 kB / 473.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.1144, allocations: 0 / 473.4 MB, free: 11.65 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.04075/0.1551, allocations: 2.818 MB / 476.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.1552, allocations: 55.41 kB / 476.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.527e-05/0.1553, allocations: 97.86 kB / 476.3 MB, free: 8.621 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.1553, allocations: 33.7 kB / 476.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.93e-05/0.1554, allocations: 84.12 kB / 476.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.142e-05/0.1554, allocations: 63.09 kB / 476.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.1555, allocations: 4 kB / 476.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1556, allocations: 326.8 kB / 476.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004118/0.156, allocations: 187.8 kB / 477 MB, free: 7.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003739/0.1564, allocations: 190 kB / 477.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005361/0.1569, allocations: 219.9 kB / 477.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.157, allocations: 0 / 477.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001038/0.158, allocations: 495.9 kB / 477.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.158, allocations: 6.5 kB / 477.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.158, allocations: 0 / 477.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1581, allocations: 4 kB / 477.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003754/0.1584, allocations: 79.88 kB / 478 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.1585, allocations: 4 kB / 478 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/0.1587, allocations: 27.97 kB / 478 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.788e-05/0.1587, allocations: 15.98 kB / 478 MB, free: 6.898 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.0001178/0.1588, allocations: 122.4 kB / 478.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.1589, allocations: 11.86 kB / 478.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.1602, allocations: 0.5605 MB / 478.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.1602, allocations: 8.203 kB / 478.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1602, allocations: 480 / 478.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1602, allocations: 7.984 kB / 478.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.1623, allocations: 0.955 MB / 479.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.1624, allocations: 8.188 kB / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.1626, allocations: 71.89 kB / 479.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.1627, allocations: 7.938 kB / 479.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.1627, allocations: 19.98 kB / 479.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1627, allocations: 0 / 479.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1627, allocations: 4 kB / 479.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009398/0.1637, allocations: 0.5571 MB / 480.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.688e-05/0.1637, allocations: 89 kB / 480.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.1637, allocations: 12 kB / 480.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.164, allocations: 23.98 kB / 480.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.754e-05/0.164, allocations: 15.94 kB / 480.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.843e-05/0.164, allocations: 19.98 kB / 480.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.586e-05/0.1641, allocations: 91.27 kB / 480.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1641, allocations: 0 / 480.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008468/0.165, allocations: 308 kB / 480.9 MB, free: 3.848 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.001206/0.1662, allocations: 243 kB / 481.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008109/0.167, allocations: 370.3 kB / 481.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.167, allocations: 0 / 481.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003433/0.1674, allocations: 164.2 kB / 481.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001709/0.1675, allocations: 15.92 kB / 481.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.1688, allocations: 484.1 kB / 482.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.169, allocations: 0.6968 MB / 482.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00036/0.1694, allocations: 92.88 kB / 483 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.1696, allocations: 51.41 kB / 483 MB, free: 1.668 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1696, allocations: 0 / 483 MB, free: 1.668 MB / 350.1 MB Notification: Performance of Templates: time 0.02416/0.1938, allocations: 17.47 MB / 0.4887 GB, free: 240 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","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches