Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,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.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_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001059/0.001059, allocations: 194 kB / 18.12 MB, free: 5.363 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.337/1.337, allocations: 222.9 MB / 241.8 MB, free: 15.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2006/0.2006, allocations: 44.17 MB / 336.1 MB, free: 3 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 68.36 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1195, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001789/0.1213, allocations: 0.5985 MB / 469.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008098/0.1222, allocations: 437.3 kB / 469.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.114e-05/0.1222, allocations: 4 kB / 469.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.02e-05/0.1223, allocations: 3.938 kB / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.843e-05/0.1223, allocations: 0 / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.1228, allocations: 99.77 kB / 469.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.141e-05/0.1228, allocations: 23.92 kB / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.238e-05/0.1229, allocations: 4 kB / 469.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.191e-05/0.1229, allocations: 4 kB / 469.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.15e-05/0.123, allocations: 27.84 kB / 469.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.123, allocations: 4 kB / 469.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002654/0.1232, allocations: 159.8 kB / 469.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.1233, allocations: 7.969 kB / 469.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.629e-05/0.1233, allocations: 15.88 kB / 469.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.1235, allocations: 123.8 kB / 470 MB, free: 13.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.1235, allocations: 0 / 470 MB, free: 13.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1235, allocations: 0 / 470 MB, free: 13.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.1236, allocations: 0 / 470 MB, free: 13.35 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.0004055/0.124, allocations: 363.7 kB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.124, allocations: 12.03 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.31e-05/0.124, allocations: 4.938 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.1242, allocations: 176.2 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1242, allocations: 8.375 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.1242, allocations: 4.375 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.1243, allocations: 58.17 kB / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1244, allocations: 3.938 kB / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.1244, allocations: 0 / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1244, allocations: 0 / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.786e-05/0.1245, allocations: 31.92 kB / 470.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.1246, allocations: 181.5 kB / 470.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.1248, allocations: 50.56 kB / 470.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.693e-05/0.1249, allocations: 28.84 kB / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002646/0.1252, allocations: 109.3 kB / 471 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.1252, allocations: 38.5 kB / 471.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.183e-06/0.1252, allocations: 0 / 471.1 MB, free: 12.12 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.1345/0.2597, allocations: 6.366 MB / 477.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.2598, allocations: 55.41 kB / 477.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.343e-05/0.2599, allocations: 101.8 kB / 477.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.2599, allocations: 29.7 kB / 477.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.249e-05/0.26, allocations: 84.14 kB / 477.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.2601, allocations: 67.08 kB / 477.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/0.2603, allocations: 89.59 kB / 477.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2604, allocations: 318.8 kB / 478.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005369/0.2609, allocations: 231.8 kB / 478.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005335/0.2615, allocations: 230.6 kB / 478.6 MB, free: 4.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002129/0.2636, allocations: 0.5552 MB / 479.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.2636, allocations: 0 / 479.2 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001864/0.2655, allocations: 0.6199 MB / 479.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.2655, allocations: 8.469 kB / 479.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2655, allocations: 0 / 479.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.2656, allocations: 0 / 479.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006934/0.2663, allocations: 103.8 kB / 479.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2663, allocations: 0 / 479.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004892/0.2668, allocations: 39.89 kB / 479.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.36e-05/0.2669, allocations: 27.95 kB / 480 MB, free: 3.129 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.267, allocations: 125.7 kB / 480.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/0.2671, allocations: 11.89 kB / 480.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002212/0.2693, allocations: 0.724 MB / 480.8 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2693, allocations: 4 kB / 480.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2693, allocations: 0 / 480.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2693, allocations: 0 / 480.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004167/0.2735, allocations: 1.176 MB / 482 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.2735, allocations: 0 / 482 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005633/0.2741, allocations: 96.09 kB / 482.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2741, allocations: 4 kB / 482.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.2742, allocations: 32.14 kB / 482.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.2742, allocations: 7.938 kB / 482.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.2742, allocations: 4 kB / 482.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.2759, allocations: 0.5889 MB / 482.7 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.003e-05/0.276, allocations: 85.02 kB / 482.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.514e-05/0.276, allocations: 4 kB / 482.8 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.2765, allocations: 31.95 kB / 482.8 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.2765, allocations: 11.98 kB / 482.9 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.038e-05/0.2766, allocations: 31.95 kB / 482.9 MB, free: 56 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.189e-05/0.2766, allocations: 79.28 kB / 483 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2767, allocations: 0 / 483 MB, free: 15.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001745/0.2784, allocations: 0.6523 MB / 483.6 MB, free: 15.32 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.00347/0.2819, allocations: 295.4 kB / 483.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.283, allocations: 447.6 kB / 484.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.283, allocations: 0 / 484.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005413/0.2836, allocations: 208 kB / 484.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.2839, allocations: 11.94 kB / 484.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.2865, allocations: 0.5468 MB / 485.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.2867, allocations: 0.7006 MB / 485.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005329/0.2873, allocations: 120.9 kB / 485.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.2876, allocations: 91.3 kB / 486 MB, free: 12.84 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2876, allocations: 0 / 486 MB, free: 12.84 MB / 366.1 MB Notification: Performance of Templates: time 0.2357/0.5233, allocations: 56.99 MB / 0.5303 GB, free: 31.47 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches