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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009524/0.0009525, allocations: 94.38 kB / 17.35 MB, free: 6.367 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.0009156/0.0009156, allocations: 176.1 kB / 18.25 MB, free: 5.527 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.253/1.253, allocations: 223.2 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1753/0.1753, allocations: 44.24 MB / 337.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002695, allocations: 12.92 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09216, allocations: 61.92 MB / 472.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0005618/0.09276, allocations: 266.7 kB / 472.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007211/0.0935, allocations: 424.7 kB / 473 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.964e-05/0.09353, allocations: 0 / 473 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.668e-05/0.09356, allocations: 3.938 kB / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.533e-05/0.09359, allocations: 0 / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.09397, allocations: 99.77 kB / 473.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.749e-05/0.09403, allocations: 23.97 kB / 473.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.09408, allocations: 4 kB / 473.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.991e-05/0.0941, allocations: 11.94 kB / 473.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.831e-05/0.09416, allocations: 15.92 kB / 473.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.097e-06/0.09417, allocations: 0 / 473.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002463/0.09442, allocations: 167.7 kB / 473.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.09444, allocations: 3.938 kB / 473.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.484e-05/0.09448, allocations: 41.62 kB / 473.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.09467, allocations: 135.6 kB / 473.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.09468, allocations: 0 / 473.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.09469, allocations: 0 / 473.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.0947, allocations: 0 / 473.5 MB, free: 12.05 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.0003516/0.09505, allocations: 362.1 kB / 473.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.0951, allocations: 8.031 kB / 473.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.185e-05/0.09513, allocations: 38.69 kB / 473.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.955e-05/0.09516, allocations: 0.9375 kB / 473.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.883e-05/0.09526, allocations: 180.2 kB / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.294e-06/0.09528, allocations: 4.375 kB / 474.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.0953, allocations: 8.359 kB / 474.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.09542, allocations: 54 kB / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.09543, allocations: 0 / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.09544, allocations: 0 / 474.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.09546, allocations: 4 kB / 474.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.114e-05/0.09552, allocations: 35.91 kB / 474.2 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.09567, allocations: 165.7 kB / 474.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.09587, allocations: 62.55 kB / 474.4 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.22e-05/0.09592, allocations: 25.08 kB / 474.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002599/0.09619, allocations: 117.1 kB / 474.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.09622, allocations: 38.5 kB / 474.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.163e-06/0.09622, allocations: 4 kB / 474.6 MB, free: 10.79 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.1491/0.2453, allocations: 6.608 MB / 481.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.2454, allocations: 55.41 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.878e-05/0.2455, allocations: 98.12 kB / 481.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.2455, allocations: 33.7 kB / 481.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.166e-05/0.2456, allocations: 84.12 kB / 481.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.449e-05/0.2457, allocations: 67.05 kB / 481.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.365e-05/0.2457, allocations: 25.7 kB / 481.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.541e-05/0.2458, allocations: 318.8 kB / 481.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005442/0.2464, allocations: 243.8 kB / 482.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/0.2469, allocations: 247.8 kB / 482.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/0.249, allocations: 0.5889 MB / 482.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.249, allocations: 0 / 482.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001773/0.2508, allocations: 0.6455 MB / 483.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2508, allocations: 4 kB / 483.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2508, allocations: 0 / 483.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.2508, allocations: 4 kB / 483.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000634/0.2515, allocations: 119.8 kB / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2515, allocations: 0 / 483.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.2519, allocations: 31.95 kB / 483.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-05/0.252, allocations: 27.95 kB / 483.8 MB, free: 1.516 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.0001413/0.2521, allocations: 133.6 kB / 483.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.775e-05/0.2522, allocations: 11.91 kB / 483.9 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.2543, allocations: 0.758 MB / 484.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2543, allocations: 3.938 kB / 484.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2543, allocations: 0 / 484.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2543, allocations: 8 kB / 484.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00384/0.2582, allocations: 1.235 MB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2582, allocations: 0 / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005221/0.2587, allocations: 107.8 kB / 486 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.2587, allocations: 3.938 kB / 486 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.52e-05/0.2588, allocations: 31.95 kB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2588, allocations: 0 / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2588, allocations: 4 kB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.2604, allocations: 0.6133 MB / 486.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-05/0.2605, allocations: 89 kB / 486.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.2605, allocations: 4 kB / 486.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004088/0.2609, allocations: 31.97 kB / 486.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.667e-05/0.261, allocations: 15.98 kB / 486.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.261, allocations: 27.95 kB / 486.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.2611, allocations: 91.2 kB / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2611, allocations: 0 / 486.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001684/0.2627, allocations: 0.6445 MB / 487.6 MB, free: 13.56 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.00501/0.2678, allocations: 1.338 MB / 488.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.2689, allocations: 493.2 kB / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.2689, allocations: 0 / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004949/0.2694, allocations: 224 kB / 489.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.2697, allocations: 15.88 kB / 489.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.273, allocations: 0.6756 MB / 490.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.2732, allocations: 0.7006 MB / 491 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005045/0.2737, allocations: 121.1 kB / 491.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003258/0.274, allocations: 103.3 kB / 491.2 MB, free: 9.777 MB / 366.1 MB Notification: Performance of SimCode: time 1.643e-06/0.274, allocations: 0 / 491.2 MB, free: 9.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2455/0.5195, allocations: 58.03 MB / 0.5364 GB, free: 25.31 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000124/0.5197, allocations: 212.4 kB / 0.5366 GB, free: 25.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.244/2.764, allocations: 4 kB / 0.5366 GB, free: 25.06 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches