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.001652/0.001652, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001936/0.001936, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2175/0.2175, allocations: 46.1 MB / 344.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001605, allocations: 76.91 kB / 418.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1116, allocations: 62.44 MB / 480.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001792/0.1134, allocations: 0.5371 MB / 481.2 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006354/0.1141, allocations: 369.4 kB / 481.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.806e-05/0.1141, allocations: 0 / 481.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/0.1142, allocations: 3.938 kB / 481.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.046e-05/0.1142, allocations: 0 / 481.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.1146, allocations: 103.7 kB / 481.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.724e-05/0.1147, allocations: 23.92 kB / 481.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.989e-05/0.1147, allocations: 7.984 kB / 481.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.385e-05/0.1148, allocations: 19.92 kB / 481.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.171e-05/0.1148, allocations: 15.92 kB / 481.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.1148, allocations: 4 kB / 481.8 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002369/0.1151, allocations: 115.9 kB / 481.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.724e-05/0.1151, allocations: 7.938 kB / 481.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.932e-05/0.1151, allocations: 15.92 kB / 481.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.1153, allocations: 100 kB / 482 MB, free: 3.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1153, allocations: 0 / 482 MB, free: 3.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1153, allocations: 4 kB / 482 MB, free: 3.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1153, allocations: 0 / 482 MB, free: 3.965 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.0004202/0.1158, allocations: 367.4 kB / 482.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1158, allocations: 12.03 kB / 482.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.226e-05/0.1159, allocations: 4.844 kB / 482.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.116, allocations: 168.3 kB / 482.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.116, allocations: 4.312 kB / 482.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.116, allocations: 4.375 kB / 482.6 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001214/0.1162, allocations: 54.23 kB / 482.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.1162, allocations: 192 / 482.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.1162, allocations: 15.88 kB / 482.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.1162, allocations: 4 kB / 482.6 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.81e-05/0.1163, allocations: 23.98 kB / 482.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.1165, allocations: 169.5 kB / 482.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.1167, allocations: 62.53 kB / 482.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.9e-05/0.1167, allocations: 28.84 kB / 482.9 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002578/0.117, allocations: 105.1 kB / 483 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.117, allocations: 34.55 kB / 483 MB, free: 2.746 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.192e-06/0.117, allocations: 0 / 483 MB, free: 2.746 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.04359/0.1606, allocations: 2.589 MB / 485.6 MB, free: 132 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.1607, allocations: 55.41 kB / 485.7 MB, free: 64 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.1608, allocations: 101.8 kB / 485.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.1609, allocations: 29.7 kB / 485.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.429e-05/0.1609, allocations: 84.14 kB / 485.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.372e-05/0.161, allocations: 63.09 kB / 486 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.1611, allocations: 61.69 kB / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1613, allocations: 318.8 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.1616, allocations: 171.9 kB / 486.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003776/0.162, allocations: 179.9 kB / 486.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.163, allocations: 412.7 kB / 487.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1631, allocations: 0 / 487.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001023/0.1641, allocations: 463.8 kB / 487.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1641, allocations: 4 kB / 487.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1641, allocations: 0 / 487.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.1642, allocations: 3.938 kB / 487.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.1645, allocations: 67.94 kB / 487.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1646, allocations: 4 kB / 487.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.1648, allocations: 19.98 kB / 487.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.509e-05/0.1648, allocations: 15.98 kB / 487.6 MB, free: 14.06 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.0001189/0.1649, allocations: 125.7 kB / 487.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/0.165, allocations: 11.84 kB / 487.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.1663, allocations: 0.5368 MB / 488.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1663, allocations: 4 kB / 488.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1663, allocations: 0 / 488.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1663, allocations: 0 / 488.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.1684, allocations: 0.8893 MB / 489.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1684, allocations: 0 / 489.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.1687, allocations: 71.88 kB / 489.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.788e-06/0.1687, allocations: 0 / 489.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.1688, allocations: 20.23 kB / 489.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.309e-05/0.1688, allocations: 8.188 kB / 489.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.1688, allocations: 7.938 kB / 489.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009067/0.1697, allocations: 462.5 kB / 489.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.1698, allocations: 85.02 kB / 489.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.055e-05/0.1698, allocations: 8 kB / 489.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.17, allocations: 15.97 kB / 489.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-05/0.1701, allocations: 23.92 kB / 489.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.1701, allocations: 15.98 kB / 489.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.213e-05/0.1702, allocations: 79.28 kB / 490 MB, free: 11.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1702, allocations: 0 / 490 MB, free: 11.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008501/0.171, allocations: 320 kB / 490.3 MB, free: 11.27 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.001362/0.1724, allocations: 227.3 kB / 490.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008588/0.1733, allocations: 351.7 kB / 490.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1733, allocations: 0 / 490.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003413/0.1736, allocations: 156.1 kB / 491 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.1739, allocations: 11.94 kB / 491 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.1752, allocations: 444.1 kB / 491.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.1755, allocations: 0.6926 MB / 492.1 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.1758, allocations: 55.39 kB / 492.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1758, allocations: 0 / 492.2 MB, free: 9.266 MB / 366.1 MB Notification: Performance of Templates: time 0.01023/0.186, allocations: 6.533 MB / 498.7 MB, free: 2.781 MB / 366.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/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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches