Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_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.006536/0.006536, allocations: 100.3 kB / 15.87 MB, free: 6.309 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.001592/0.001592, allocations: 195.1 kB / 16.78 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.265/1.265, allocations: 205.1 MB / 222.6 MB, free: 4.984 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2915/0.2915, allocations: 43.5 MB / 313.5 MB, free: 8.633 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 382.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08555/0.08682, allocations: 57.79 MB / 439.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001595/0.08846, allocations: 0.6086 MB / 440.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007056/0.08918, allocations: 438.3 kB / 440.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.574e-05/0.08921, allocations: 0 / 440.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.501e-05/0.08923, allocations: 0 / 440.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.845e-05/0.08927, allocations: 7.938 kB / 441 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.08961, allocations: 91.77 kB / 441 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.854e-05/0.08967, allocations: 27.97 kB / 441.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.08972, allocations: 4 kB / 441.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.003e-05/0.08975, allocations: 11.94 kB / 441.1 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.823e-05/0.0898, allocations: 15.92 kB / 441.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.08981, allocations: 4 kB / 441.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002262/0.09004, allocations: 167.7 kB / 441.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.174e-05/0.09006, allocations: 7.938 kB / 441.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.501e-05/0.09009, allocations: 11.94 kB / 441.3 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001785/0.09028, allocations: 131.9 kB / 441.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.09029, allocations: 0 / 441.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.09029, allocations: 0 / 441.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.0903, allocations: 0 / 441.4 MB, free: 13.54 MB / 382.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.00038/0.09068, allocations: 367.4 kB / 441.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.09073, allocations: 8.031 kB / 441.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.916e-05/0.09076, allocations: 34.75 kB / 441.8 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.424e-05/0.09079, allocations: 4.938 kB / 441.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.0909, allocations: 176.2 kB / 442 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.123e-06/0.09091, allocations: 4.375 kB / 442 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.09094, allocations: 8.375 kB / 442 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.09105, allocations: 53.94 kB / 442.1 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.09107, allocations: 3.984 kB / 442.1 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.09108, allocations: 8 kB / 442.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.09109, allocations: 0 / 442.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.814e-05/0.09116, allocations: 27.92 kB / 442.1 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.09131, allocations: 165.7 kB / 442.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.09151, allocations: 58.53 kB / 442.3 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.242e-05/0.09156, allocations: 32.84 kB / 442.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002427/0.09181, allocations: 109.3 kB / 442.5 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.09184, allocations: 38.44 kB / 442.5 MB, free: 12.28 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.09184, allocations: 0 / 442.5 MB, free: 12.28 MB / 382.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.1247/0.2165, allocations: 6.385 MB / 448.9 MB, free: 5.852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.2166, allocations: 55.41 kB / 448.9 MB, free: 5.785 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.609e-05/0.2167, allocations: 101.8 kB / 449 MB, free: 5.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.2168, allocations: 37.7 kB / 449.1 MB, free: 5.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.411e-05/0.2168, allocations: 80.14 kB / 449.2 MB, free: 5.551 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.671e-05/0.2169, allocations: 59.11 kB / 449.2 MB, free: 5.492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.2171, allocations: 89.59 kB / 449.3 MB, free: 5.398 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2172, allocations: 318.8 kB / 449.6 MB, free: 5.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005064/0.2177, allocations: 227.8 kB / 449.8 MB, free: 4.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/0.2182, allocations: 231.8 kB / 450.1 MB, free: 4.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002026/0.2202, allocations: 0.5622 MB / 450.6 MB, free: 4.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2202, allocations: 4 kB / 450.6 MB, free: 4.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001742/0.222, allocations: 0.5987 MB / 451.2 MB, free: 3.457 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.222, allocations: 8 kB / 451.2 MB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.222, allocations: 3.984 kB / 451.2 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2221, allocations: 0 / 451.2 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.2227, allocations: 104.3 kB / 451.3 MB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.2227, allocations: 3.984 kB / 451.3 MB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/0.2232, allocations: 27.97 kB / 451.4 MB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.2233, allocations: 31.94 kB / 451.4 MB, free: 3.281 MB / 382.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.000158/0.2234, allocations: 125.7 kB / 451.5 MB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.568e-05/0.2235, allocations: 11.84 kB / 451.5 MB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.2257, allocations: 0.732 MB / 452.3 MB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.2257, allocations: 4 kB / 452.3 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2257, allocations: 0 / 452.3 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2257, allocations: 3.984 kB / 452.3 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/0.2297, allocations: 1.169 MB / 453.4 MB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2297, allocations: 0 / 453.4 MB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005403/0.2303, allocations: 96.05 kB / 453.5 MB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.259e-06/0.2303, allocations: 4 kB / 453.5 MB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.061e-05/0.2303, allocations: 31.95 kB / 453.6 MB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2304, allocations: 3.938 kB / 453.6 MB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2304, allocations: 4 kB / 453.6 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/0.232, allocations: 0.5823 MB / 454.2 MB, free: 400 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.232, allocations: 89.02 kB / 454.2 MB, free: 292 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/0.2321, allocations: 8 kB / 454.3 MB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004051/0.2325, allocations: 23.95 kB / 454.3 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/0.2325, allocations: 15.98 kB / 454.3 MB, free: 244 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.95e-05/0.2326, allocations: 27.95 kB / 454.3 MB, free: 216 kB / 382.1 MB Notification: Performance of sorting global known variables: time 4.111e-05/0.2326, allocations: 87.22 kB / 454.4 MB, free: 128 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2326, allocations: 0 / 454.4 MB, free: 128 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.1594/0.392, allocations: 0.6462 MB / 455.1 MB, free: 47.97 MB / 382.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.004408/0.3965, allocations: 1.303 MB / 456.4 MB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000959/0.3974, allocations: 448.7 kB / 456.8 MB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3975, allocations: 0 / 456.8 MB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004179/0.3979, allocations: 202.2 kB / 457 MB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.3982, allocations: 17.05 kB / 457 MB, free: 47.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.4009, allocations: 0.643 MB / 457.7 MB, free: 47.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001025/0.4011, allocations: 0.6928 MB / 458.3 MB, free: 46.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000481/0.4015, allocations: 129 kB / 458.5 MB, free: 46.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.4018, allocations: 97.91 kB / 458.6 MB, free: 46.3 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4019, allocations: 0 / 458.6 MB, free: 46.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4833/0.8851, allocations: 58.02 MB / 0.5045 GB, free: 18.02 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.8853, allocations: 215.7 kB / 0.5047 GB, free: 17.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.854/3.74, allocations: 4 kB / 0.5047 GB, free: 17.75 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches