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.0007851/0.0007851, allocations: 93.67 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009545/0.0009545, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.7 MB / 246.8 MB, free: 9.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1955/0.1955, allocations: 46.2 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000253/0.0002531, allocations: 8 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1122, allocations: 63.57 MB / 483.1 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0007087/0.113, allocations: 277.3 kB / 483.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009206/0.1139, allocations: 418.9 kB / 483.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.899e-05/0.1139, allocations: 0 / 483.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.817e-05/0.114, allocations: 0 / 483.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.995e-05/0.114, allocations: 7.938 kB / 483.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.1145, allocations: 95.78 kB / 483.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.991e-05/0.1146, allocations: 27.92 kB / 483.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.312e-05/0.1146, allocations: 4 kB / 483.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.437e-05/0.1146, allocations: 7.984 kB / 483.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.42e-05/0.1147, allocations: 23.84 kB / 483.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.1147, allocations: 4 kB / 483.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.115, allocations: 159.8 kB / 484.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.375e-05/0.115, allocations: 3.984 kB / 484.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.1151, allocations: 45.56 kB / 484.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.1153, allocations: 119.8 kB / 484.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1153, allocations: 4 kB / 484.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1153, allocations: 4 kB / 484.3 MB, free: 2.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1153, allocations: 0 / 484.3 MB, free: 2.941 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.0005048/0.1159, allocations: 351.7 kB / 484.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1159, allocations: 12.03 kB / 484.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.911e-05/0.116, allocations: 4.922 kB / 484.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.1161, allocations: 176.2 kB / 484.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1161, allocations: 384 / 484.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.52e-05/0.1162, allocations: 12.31 kB / 484.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.1163, allocations: 54.17 kB / 484.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.1164, allocations: 7.938 kB / 484.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.1164, allocations: 8 kB / 484.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1164, allocations: 0 / 484.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.326e-05/0.1165, allocations: 23.98 kB / 484.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002133/0.1167, allocations: 165.6 kB / 485.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.117, allocations: 58.55 kB / 485.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.214e-05/0.117, allocations: 28.84 kB / 485.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002963/0.1173, allocations: 113.1 kB / 485.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.1174, allocations: 38.55 kB / 485.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.213e-06/0.1174, allocations: 3.938 kB / 485.3 MB, free: 1.727 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.1555/0.2729, allocations: 6.628 MB / 491.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.273, allocations: 51.41 kB / 492 MB, free: 11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.2731, allocations: 105.8 kB / 492.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.81e-05/0.2731, allocations: 25.7 kB / 492.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.2732, allocations: 88.08 kB / 492.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.864e-05/0.2733, allocations: 59.11 kB / 492.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.027e-05/0.2734, allocations: 21.7 kB / 492.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.2735, allocations: 326.8 kB / 492.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.2741, allocations: 239.8 kB / 492.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005793/0.2747, allocations: 247.8 kB / 493.1 MB, free: 9.875 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/0.2769, allocations: 0.5887 MB / 493.7 MB, free: 9.285 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2769, allocations: 0 / 493.7 MB, free: 9.285 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0019/0.2788, allocations: 0.6378 MB / 494.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.2789, allocations: 8 kB / 494.3 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.2789, allocations: 4.469 kB / 494.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.2789, allocations: 0 / 494.3 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/0.2796, allocations: 115.8 kB / 494.4 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2796, allocations: 3.938 kB / 494.4 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004606/0.2801, allocations: 35.95 kB / 494.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.445e-05/0.2801, allocations: 40.12 kB / 494.5 MB, free: 8.438 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.0001752/0.2803, allocations: 121.7 kB / 494.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/0.2804, allocations: 7.906 kB / 494.6 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.2826, allocations: 0.7631 MB / 495.4 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2827, allocations: 0 / 495.4 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.2827, allocations: 4 kB / 495.4 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2827, allocations: 0 / 495.4 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00421/0.2869, allocations: 1.22 MB / 496.6 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.2869, allocations: 4 kB / 496.6 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/0.2875, allocations: 112 kB / 496.7 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.2875, allocations: 0 / 496.7 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.838e-05/0.2876, allocations: 31.94 kB / 496.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.2876, allocations: 4 kB / 496.8 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2876, allocations: 0 / 496.8 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.2894, allocations: 0.6232 MB / 497.4 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/0.2894, allocations: 89.02 kB / 497.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.493e-05/0.2895, allocations: 4 kB / 497.5 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.29, allocations: 35.95 kB / 497.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.946e-05/0.29, allocations: 15.92 kB / 497.5 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.572e-05/0.2901, allocations: 31.95 kB / 497.6 MB, free: 5.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.288e-05/0.2901, allocations: 79.28 kB / 497.6 MB, free: 5.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2901, allocations: 0 / 497.6 MB, free: 5.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001928/0.2921, allocations: 0.6523 MB / 498.3 MB, free: 4.508 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.002985/0.2951, allocations: 306.8 kB / 498.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.2963, allocations: 483.5 kB / 499.1 MB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2963, allocations: 0 / 499.1 MB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005277/0.2968, allocations: 220.1 kB / 499.3 MB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.2972, allocations: 8 kB / 499.3 MB, free: 3.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.2996, allocations: 0.5956 MB / 499.9 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.2999, allocations: 0.6929 MB / 0.4888 GB, free: 2.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005268/0.3004, allocations: 129.1 kB / 0.489 GB, free: 2.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.3008, allocations: 83.3 kB / 0.489 GB, free: 1.93 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3008, allocations: 0 / 0.489 GB, free: 1.93 MB / 366.1 MB Notification: Performance of Templates: time 0.2644/0.5652, allocations: 57.03 MB / 0.5447 GB, free: 13.19 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