Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009525/0.0009524, allocations: 98.67 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001121/0.001121, allocations: 202.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.7 MB / 246.4 MB, free: 9.824 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 46.18 MB / 344.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004553/0.0004554, allocations: 12.2 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.15, allocations: 63.57 MB / 482.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0007921/0.1508, allocations: 250.8 kB / 482.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009114/0.1517, allocations: 377.9 kB / 483 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.4e-05/0.1518, allocations: 7.938 kB / 483 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.57e-05/0.1518, allocations: 0 / 483 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.901e-05/0.1519, allocations: 4 kB / 483 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005658/0.1525, allocations: 91.77 kB / 483.1 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.076e-05/0.1526, allocations: 27.92 kB / 483.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.614e-05/0.1526, allocations: 0 / 483.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.111e-05/0.1526, allocations: 19.91 kB / 483.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.331e-05/0.1527, allocations: 15.92 kB / 483.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.1527, allocations: 0 / 483.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003167/0.1531, allocations: 155.8 kB / 483.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.1531, allocations: 15.98 kB / 483.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.1531, allocations: 25.7 kB / 483.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.1533, allocations: 75.88 kB / 483.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1533, allocations: 0 / 483.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1533, allocations: 0 / 483.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.1534, allocations: 0 / 483.5 MB, free: 3.48 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.0004619/0.1538, allocations: 355.5 kB / 483.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1539, allocations: 8.031 kB / 483.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.75e-05/0.1539, allocations: 4 kB / 483.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.1541, allocations: 182.9 kB / 484 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1541, allocations: 4 kB / 484 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.1541, allocations: 7.906 kB / 484 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.1543, allocations: 49.69 kB / 484.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1543, allocations: 3.984 kB / 484.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1543, allocations: 3.938 kB / 484.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.1543, allocations: 0 / 484.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.733e-05/0.1544, allocations: 31.92 kB / 484.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002114/0.1546, allocations: 169.6 kB / 484.3 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.1549, allocations: 58.55 kB / 484.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.73e-05/0.1549, allocations: 25.12 kB / 484.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002873/0.1552, allocations: 121 kB / 484.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.1553, allocations: 38.56 kB / 484.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.1553, allocations: 0 / 484.5 MB, free: 2.258 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.1159/0.2712, allocations: 6.618 MB / 491.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.2713, allocations: 59.41 kB / 491.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.447e-05/0.2714, allocations: 97.84 kB / 491.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.2714, allocations: 33.7 kB / 491.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.13e-05/0.2715, allocations: 80.14 kB / 491.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.481e-05/0.2716, allocations: 71 kB / 491.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.226e-05/0.2716, allocations: 4 kB / 491.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.2718, allocations: 318.8 kB / 491.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005668/0.2723, allocations: 247.8 kB / 492 MB, free: 10.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/0.2729, allocations: 243.8 kB / 492.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.2739, allocations: 291.8 kB / 492.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2739, allocations: 4 kB / 492.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001777/0.2757, allocations: 0.644 MB / 493.2 MB, free: 9.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.2757, allocations: 4 kB / 493.2 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.2757, allocations: 0 / 493.2 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.2758, allocations: 7.938 kB / 493.2 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006133/0.2764, allocations: 115.8 kB / 493.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2764, allocations: 0 / 493.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003876/0.2768, allocations: 36.42 kB / 493.3 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.139e-05/0.2769, allocations: 35.94 kB / 493.4 MB, free: 9.305 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.277, allocations: 125.7 kB / 493.5 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.66e-05/0.2771, allocations: 7.906 kB / 493.5 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.2792, allocations: 0.7516 MB / 494.3 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2792, allocations: 7.938 kB / 494.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.2792, allocations: 0 / 494.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.2792, allocations: 0 / 494.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00394/0.2832, allocations: 1.22 MB / 495.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.2832, allocations: 4 kB / 495.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/0.2837, allocations: 100.1 kB / 495.6 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/0.2837, allocations: 7.953 kB / 495.6 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.182e-05/0.2838, allocations: 36.14 kB / 495.6 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-05/0.2838, allocations: 4 kB / 495.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2838, allocations: 3.938 kB / 495.6 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.2855, allocations: 0.6193 MB / 496.2 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.987e-05/0.2856, allocations: 81.11 kB / 496.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.716e-05/0.2856, allocations: 4 kB / 496.3 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.2861, allocations: 39.95 kB / 496.4 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.2861, allocations: 19.88 kB / 496.4 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-05/0.2862, allocations: 27.95 kB / 496.4 MB, free: 6.113 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.463e-05/0.2862, allocations: 79.28 kB / 496.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2862, allocations: 0 / 496.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001956/0.2882, allocations: 0.6523 MB / 497.1 MB, free: 5.383 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 (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.003538/0.2917, allocations: 311.3 kB / 497.5 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.293, allocations: 471.6 kB / 497.9 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.293, allocations: 4 kB / 497.9 MB, free: 4.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005327/0.2935, allocations: 220 kB / 498.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2939, allocations: 15.95 kB / 498.1 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.2962, allocations: 0.5853 MB / 498.7 MB, free: 3.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.2966, allocations: 0.6929 MB / 499.4 MB, free: 3.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005652/0.2971, allocations: 128.9 kB / 499.6 MB, free: 2.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/0.2975, allocations: 87.23 kB / 499.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2975, allocations: 0 / 499.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of Templates: time 0.309/0.6064, allocations: 56.89 MB / 0.5435 GB, free: 14.11 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches