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.001091/0.001091, allocations: 105.9 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.001017/0.001017, 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.389/1.389, allocations: 222.9 MB / 241.8 MB, free: 13.84 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.2059/0.2059, allocations: 44.18 MB / 336.1 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 65.19 kB / 407.8 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1203, allocations: 60.82 MB / 468.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001792/0.1221, allocations: 0.5915 MB / 469.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008032/0.1229, allocations: 440.7 kB / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.756e-05/0.123, allocations: 0 / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.563e-05/0.123, allocations: 0 / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.673e-05/0.123, allocations: 0 / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.1234, allocations: 103.8 kB / 469.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.041e-05/0.1235, allocations: 27.86 kB / 469.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.1235, allocations: 0 / 469.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.325e-05/0.1236, allocations: 12 kB / 469.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.197e-05/0.1236, allocations: 23.84 kB / 469.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.1236, allocations: 0 / 469.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.1239, allocations: 159.8 kB / 470 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.481e-05/0.1239, allocations: 7.984 kB / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.53e-05/0.124, allocations: 15.88 kB / 470 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.1242, allocations: 127.8 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1242, allocations: 0 / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.71e-07/0.1242, allocations: 0 / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.1242, allocations: 4 kB / 470.1 MB, free: 13.22 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.0003912/0.1246, allocations: 359.7 kB / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.1247, allocations: 12.03 kB / 470.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.982e-05/0.1247, allocations: 34.75 kB / 470.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.1248, allocations: 8.844 kB / 470.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.1249, allocations: 168.3 kB / 470.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.1249, allocations: 12.38 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.1249, allocations: 4.312 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.1251, allocations: 58 kB / 470.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.1251, allocations: 3.984 kB / 470.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.1251, allocations: 0 / 470.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.1251, allocations: 3.938 kB / 470.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.443e-05/0.1252, allocations: 27.92 kB / 470.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.1254, allocations: 181.5 kB / 471 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.1256, allocations: 58.55 kB / 471 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.947e-05/0.1257, allocations: 24.84 kB / 471.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002816/0.126, allocations: 101.1 kB / 471.2 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.126, allocations: 42.5 kB / 471.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.126, allocations: 0 / 471.2 MB, free: 11.95 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.1423/0.2683, allocations: 6.37 MB / 477.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.2684, allocations: 55.41 kB / 477.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.716e-05/0.2685, allocations: 93.86 kB / 477.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.2686, allocations: 37.62 kB / 477.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.67e-05/0.2686, allocations: 84.14 kB / 477.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.453e-05/0.2687, allocations: 59.09 kB / 477.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.2689, allocations: 89.59 kB / 478 MB, free: 5.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.2691, allocations: 330.8 kB / 478.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005749/0.2696, allocations: 227.8 kB / 478.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005729/0.2702, allocations: 227.8 kB / 478.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002272/0.2725, allocations: 0.5554 MB / 479.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2725, allocations: 3.938 kB / 479.3 MB, free: 3.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001904/0.2744, allocations: 0.6126 MB / 479.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.2744, allocations: 4 kB / 479.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2745, allocations: 3.984 kB / 479.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2745, allocations: 4 kB / 479.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007581/0.2752, allocations: 107.8 kB / 480 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2753, allocations: 7.969 kB / 480 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004882/0.2758, allocations: 19.97 kB / 480.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.7e-05/0.2758, allocations: 36.41 kB / 480.1 MB, free: 2.961 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.000147/0.276, allocations: 125.7 kB / 480.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.363e-05/0.2761, allocations: 11.89 kB / 480.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/0.2783, allocations: 0.7279 MB / 481 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2784, allocations: 4 kB / 481 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2784, allocations: 3.938 kB / 481 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.2784, allocations: 3.984 kB / 481 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004424/0.2828, allocations: 1.168 MB / 482.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.2828, allocations: 4 kB / 482.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005909/0.2834, allocations: 99.8 kB / 482.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.2835, allocations: 4 kB / 482.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.142e-05/0.2835, allocations: 23.95 kB / 482.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.2835, allocations: 4 kB / 482.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.2835, allocations: 0 / 482.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.2853, allocations: 0.589 MB / 482.9 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.198e-05/0.2854, allocations: 85.02 kB / 482.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.474e-05/0.2855, allocations: 8 kB / 483 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.2859, allocations: 27.95 kB / 483 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.286, allocations: 19.92 kB / 483 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.369e-05/0.286, allocations: 27.95 kB / 483 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.351e-05/0.2861, allocations: 91.22 kB / 483.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.2861, allocations: 0 / 483.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001774/0.2879, allocations: 0.6483 MB / 483.8 MB, free: 15.15 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.005375/0.2932, allocations: 1.307 MB / 485.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.2945, allocations: 439.6 kB / 485.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2945, allocations: 4 kB / 485.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/0.295, allocations: 203.7 kB / 485.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.2953, allocations: 17.83 kB / 485.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.2988, allocations: 0.6412 MB / 486.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.2991, allocations: 0.7006 MB / 487.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005653/0.2997, allocations: 120.9 kB / 487.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003553/0.3, allocations: 99.28 kB / 487.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.873e-06/0.3, allocations: 0 / 487.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2524/0.5525, allocations: 58.01 MB / 0.5325 GB, free: 29.11 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.5526, allocations: 220.5 kB / 0.5327 GB, free: 28.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.331/2.884, allocations: 0 / 0.5327 GB, free: 28.86 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","/var/lib/jenkins1/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