Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001408/0.001408, allocations: 106.4 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002313/0.002313, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2198/0.2198, allocations: 46.11 MB / 343.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 79.42 kB / 416.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1204, allocations: 62.45 MB / 479.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.002053/0.1225, allocations: 0.6058 MB / 479.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000802/0.1233, allocations: 390.7 kB / 480.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.998e-05/0.1233, allocations: 0 / 480.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.783e-05/0.1234, allocations: 0 / 480.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.99e-05/0.1234, allocations: 0 / 480.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.1238, allocations: 71.8 kB / 480.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.307e-05/0.1239, allocations: 35.86 kB / 480.4 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.589e-05/0.1239, allocations: 4 kB / 480.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.343e-05/0.124, allocations: 7.984 kB / 480.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.548e-05/0.124, allocations: 27.84 kB / 480.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.124, allocations: 0 / 480.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.1243, allocations: 115.9 kB / 480.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.787e-05/0.1243, allocations: 4 kB / 480.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.128e-05/0.1244, allocations: 19.86 kB / 480.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.1245, allocations: 91.81 kB / 480.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1246, allocations: 0 / 480.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1246, allocations: 0 / 480.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.1246, allocations: 4 kB / 480.7 MB, free: 4.367 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.0004298/0.125, allocations: 359.7 kB / 481 MB, free: 3.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.1251, allocations: 12.03 kB / 481 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.1251, allocations: 4.844 kB / 481 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.1252, allocations: 172.3 kB / 481.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.1253, allocations: 384 / 481.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/0.1253, allocations: 8.375 kB / 481.2 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.1254, allocations: 58.12 kB / 481.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1255, allocations: 4.188 kB / 481.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.1255, allocations: 7.938 kB / 481.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.1255, allocations: 0 / 481.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.27e-05/0.1256, allocations: 27.97 kB / 481.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002144/0.1258, allocations: 169.5 kB / 481.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.126, allocations: 62.58 kB / 481.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.235e-05/0.1261, allocations: 24.86 kB / 481.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002854/0.1264, allocations: 113 kB / 481.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.1264, allocations: 30.56 kB / 481.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.1264, allocations: 4 kB / 481.7 MB, free: 3.148 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.0455/0.1719, allocations: 2.568 MB / 484.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.172, allocations: 55.41 kB / 484.3 MB, free: 488 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.87e-05/0.1721, allocations: 101.8 kB / 484.4 MB, free: 376 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.1722, allocations: 33.7 kB / 484.4 MB, free: 336 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.442e-05/0.1722, allocations: 84.14 kB / 484.5 MB, free: 248 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/0.1723, allocations: 67.08 kB / 484.6 MB, free: 180 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.1724, allocations: 57.69 kB / 484.6 MB, free: 116 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1725, allocations: 322.8 kB / 485 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/0.1729, allocations: 167.9 kB / 485.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.1733, allocations: 184.1 kB / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.1744, allocations: 410.9 kB / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.1744, allocations: 7.938 kB / 485.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001075/0.1755, allocations: 464.3 kB / 486.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1755, allocations: 6.656 kB / 486.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.1755, allocations: 3.984 kB / 486.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1755, allocations: 0 / 486.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.1759, allocations: 79.88 kB / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1759, allocations: 4 kB / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.1762, allocations: 11.98 kB / 486.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.1762, allocations: 19.98 kB / 486.3 MB, free: 14.46 MB / 366.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.0001259/0.1763, allocations: 117.8 kB / 486.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.231e-05/0.1764, allocations: 7.906 kB / 486.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001281/0.1777, allocations: 0.5485 MB / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1777, allocations: 0 / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.1777, allocations: 0 / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1777, allocations: 0 / 487 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00221/0.1799, allocations: 0.8811 MB / 487.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1799, allocations: 0 / 487.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.1803, allocations: 71.88 kB / 487.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-06/0.1803, allocations: 4 kB / 487.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.1803, allocations: 20.17 kB / 487.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-05/0.1803, allocations: 4 kB / 487.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1803, allocations: 0 / 487.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009727/0.1813, allocations: 468.7 kB / 488.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.1814, allocations: 89 kB / 488.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.1814, allocations: 8 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.1816, allocations: 19.97 kB / 488.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.643e-05/0.1817, allocations: 15.98 kB / 488.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.375e-05/0.1817, allocations: 19.94 kB / 488.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.892e-05/0.1818, allocations: 95.2 kB / 488.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.304e-06/0.1818, allocations: 0 / 488.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001031/0.1828, allocations: 311.9 kB / 488.9 MB, free: 11.67 MB / 366.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.001504/0.1843, allocations: 243 kB / 489.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007977/0.1851, allocations: 330.3 kB / 489.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1852, allocations: 0 / 489.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.1855, allocations: 151.9 kB / 489.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.1859, allocations: 16 kB / 489.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.1872, allocations: 444.3 kB / 490.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.1874, allocations: 0.6968 MB / 490.8 MB, free: 9.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003609/0.1878, allocations: 92.88 kB / 490.9 MB, free: 9.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.188, allocations: 47.41 kB / 490.9 MB, free: 9.59 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.188, allocations: 0 / 490.9 MB, free: 9.59 MB / 366.1 MB Notification: Performance of Templates: time 0.02535/0.2134, allocations: 17.57 MB / 0.4966 GB, free: 8.039 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches