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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001892/0.001892, allocations: 213.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2282/0.2282, allocations: 46.92 MB / 360.8 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003015/0.003015, allocations: 87.86 kB / 0.4962 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3161, allocations: 66.09 MB / 0.5607 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002395/0.3185, allocations: 0.5344 MB / 0.5612 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009056/0.3194, allocations: 410.8 kB / 0.5616 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.446e-05/0.3195, allocations: 0 / 0.5616 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.171e-05/0.3195, allocations: 3.938 kB / 0.5616 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.779e-05/0.3195, allocations: 3.938 kB / 0.5616 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006705/0.3202, allocations: 135.4 kB / 0.5618 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.903e-05/0.3203, allocations: 27.91 kB / 0.5618 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.381e-05/0.3203, allocations: 4 kB / 0.5618 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.743e-05/0.3204, allocations: 15.92 kB / 0.5618 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.001e-05/0.3204, allocations: 19.86 kB / 0.5618 GB, free: 3.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.3204, allocations: 4 kB / 0.5618 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.3208, allocations: 159.8 kB / 0.562 GB, free: 3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.278e-05/0.3208, allocations: 0 / 0.562 GB, free: 3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.3208, allocations: 19.86 kB / 0.562 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002641/0.3211, allocations: 125.7 kB / 0.5621 GB, free: 2.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3211, allocations: 0 / 0.5621 GB, free: 2.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3211, allocations: 3.938 kB / 0.5621 GB, free: 2.855 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.3211, allocations: 0 / 0.5621 GB, free: 2.855 MB / 398.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.000524/0.3216, allocations: 301.9 kB / 0.5624 GB, free: 2.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3217, allocations: 8.031 kB / 0.5624 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.3217, allocations: 38.73 kB / 0.5625 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.3217, allocations: 4.938 kB / 0.5625 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.3219, allocations: 110.5 kB / 0.5626 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.3219, allocations: 8.375 kB / 0.5626 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.3219, allocations: 8.297 kB / 0.5626 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/0.322, allocations: 65.92 kB / 0.5627 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3221, allocations: 0 / 0.5627 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.3221, allocations: 4 kB / 0.5627 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.3221, allocations: 0 / 0.5627 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.827e-05/0.3221, allocations: 23.98 kB / 0.5627 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001891/0.3223, allocations: 140.7 kB / 0.5628 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.3226, allocations: 62.58 kB / 0.5629 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.669e-05/0.3226, allocations: 20.84 kB / 0.5629 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.3228, allocations: 31.97 kB / 0.5629 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.3229, allocations: 38.5 kB / 0.563 GB, free: 1.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.3229, allocations: 0 / 0.563 GB, free: 1.875 MB / 398.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.4574, allocations: 6.397 MB / 0.5692 GB, free: 11.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.4575, allocations: 55.41 kB / 0.5693 GB, free: 11.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.79e-05/0.4576, allocations: 98.33 kB / 0.5694 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.4576, allocations: 29.7 kB / 0.5694 GB, free: 11.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.968e-05/0.4577, allocations: 88.12 kB / 0.5695 GB, free: 11.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.4578, allocations: 63.44 kB / 0.5695 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.4579, allocations: 93.53 kB / 0.5696 GB, free: 10.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.4581, allocations: 326.7 kB / 0.5699 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005684/0.4587, allocations: 231.8 kB / 0.5702 GB, free: 10.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005598/0.4592, allocations: 227.8 kB / 0.5704 GB, free: 10.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/0.4614, allocations: 0.5629 MB / 0.5709 GB, free: 9.645 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.4614, allocations: 0 / 0.5709 GB, free: 9.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001875/0.4633, allocations: 0.6091 MB / 0.5715 GB, free: 9.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4633, allocations: 4 kB / 0.5715 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4633, allocations: 0 / 0.5715 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.4633, allocations: 3.984 kB / 0.5715 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006907/0.464, allocations: 107.8 kB / 0.5716 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.464, allocations: 4 kB / 0.5716 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.4645, allocations: 23.95 kB / 0.5717 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.606e-05/0.4645, allocations: 35.94 kB / 0.5717 GB, free: 8.855 MB / 414.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.0001623/0.4647, allocations: 121.8 kB / 0.5718 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.4648, allocations: 7.953 kB / 0.5718 GB, free: 8.719 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002201/0.467, allocations: 0.7321 MB / 0.5725 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.467, allocations: 4 kB / 0.5725 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.467, allocations: 0 / 0.5725 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.467, allocations: 3.984 kB / 0.5725 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004195/0.4712, allocations: 1.117 MB / 0.5736 GB, free: 6.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4712, allocations: 4 kB / 0.5736 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000577/0.4718, allocations: 103.8 kB / 0.5737 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.4718, allocations: 4 kB / 0.5737 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.4718, allocations: 27.95 kB / 0.5738 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.4718, allocations: 0 / 0.5738 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4718, allocations: 4 kB / 0.5738 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.4736, allocations: 0.5885 MB / 0.5743 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.423e-05/0.4736, allocations: 11.95 kB / 0.5743 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.4737, allocations: 4 kB / 0.5744 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/0.4741, allocations: 27.97 kB / 0.5744 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.4741, allocations: 11.97 kB / 0.5744 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.422e-05/0.4742, allocations: 39.89 kB / 0.5744 GB, free: 5.934 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.612e-05/0.4742, allocations: 83.22 kB / 0.5745 GB, free: 5.852 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4742, allocations: 0 / 0.5745 GB, free: 5.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001827/0.4761, allocations: 0.6519 MB / 0.5751 GB, free: 5.199 MB / 414.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.005589/0.4817, allocations: 1.31 MB / 0.5764 GB, free: 3.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.4829, allocations: 431.5 kB / 0.5768 GB, free: 3.418 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4829, allocations: 0 / 0.5768 GB, free: 3.418 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005538/0.4835, allocations: 199.8 kB / 0.577 GB, free: 3.223 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.4838, allocations: 21.22 kB / 0.577 GB, free: 3.207 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.4873, allocations: 0.6204 MB / 0.5777 GB, free: 2.523 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.4876, allocations: 0.6965 MB / 0.5783 GB, free: 1.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004184/0.4881, allocations: 121.2 kB / 0.5784 GB, free: 1.676 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003281/0.4884, allocations: 95.28 kB / 0.5785 GB, free: 1.582 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4884, allocations: 0 / 0.5785 GB, free: 1.582 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1053/0.5937, allocations: 58.9 MB / 0.6361 GB, free: 6.652 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.03, allocations: 0 / 0.6361 GB, free: 6.652 MB / 478.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.938851138809696]