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.001569/0.001569, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00163/0.00163, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.374/1.374, allocations: 230.5 MB / 258.2 MB, free: 7.781 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.2168/0.2168, allocations: 46.95 MB / 361.6 MB, free: 3.906 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002222/0.002222, allocations: 76.08 kB / 0.4969 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2842, allocations: 66.09 MB / 0.5614 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001607/0.2858, allocations: 0.5207 MB / 0.5619 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007462/0.2865, allocations: 386.8 kB / 0.5623 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.493e-05/0.2865, allocations: 0 / 0.5623 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.534e-05/0.2866, allocations: 3.938 kB / 0.5623 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.381e-05/0.2866, allocations: 0 / 0.5623 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.2871, allocations: 139.4 kB / 0.5624 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.611e-05/0.2871, allocations: 15.98 kB / 0.5625 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.629e-05/0.2872, allocations: 11.97 kB / 0.5625 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.998e-05/0.2872, allocations: 11.94 kB / 0.5625 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.2872, allocations: 19.92 kB / 0.5625 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.2873, allocations: 0 / 0.5625 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002535/0.2875, allocations: 151.8 kB / 0.5626 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.997e-05/0.2875, allocations: 7.938 kB / 0.5627 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.2875, allocations: 15.92 kB / 0.5627 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.2878, allocations: 121.7 kB / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2878, allocations: 0 / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2878, allocations: 0 / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2878, allocations: 0 / 0.5628 GB, free: 2.633 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.0004329/0.2882, allocations: 301.9 kB / 0.5631 GB, free: 2.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2882, allocations: 11.97 kB / 0.5631 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.369e-05/0.2882, allocations: 4.188 kB / 0.5631 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.231e-05/0.2883, allocations: 34.75 kB / 0.5631 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.51e-05/0.2883, allocations: 4.938 kB / 0.5631 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.2884, allocations: 110.4 kB / 0.5632 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.2884, allocations: 4.375 kB / 0.5632 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.2885, allocations: 12.36 kB / 0.5632 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.2886, allocations: 53.8 kB / 0.5633 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2886, allocations: 0 / 0.5633 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.2886, allocations: 7.938 kB / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2886, allocations: 4 kB / 0.5633 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.616e-05/0.2887, allocations: 31.91 kB / 0.5633 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/0.2888, allocations: 136.7 kB / 0.5635 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.289, allocations: 54.55 kB / 0.5635 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.087e-05/0.2891, allocations: 24.86 kB / 0.5635 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002298/0.2893, allocations: 27.95 kB / 0.5636 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.2894, allocations: 42.72 kB / 0.5636 GB, free: 1.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.2894, allocations: 0 / 0.5636 GB, free: 1.652 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.1362/0.4255, allocations: 6.393 MB / 0.5699 GB, free: 11.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.4256, allocations: 55.41 kB / 0.5699 GB, free: 11.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.662e-05/0.4257, allocations: 97.86 kB / 0.57 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.4257, allocations: 29.7 kB / 0.57 GB, free: 11.01 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.108e-05/0.4258, allocations: 88.12 kB / 0.5701 GB, free: 10.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.4259, allocations: 67.42 kB / 0.5702 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.426, allocations: 85.59 kB / 0.5703 GB, free: 10.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4262, allocations: 322.8 kB / 0.5706 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005624/0.4267, allocations: 231.8 kB / 0.5708 GB, free: 10.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005445/0.4273, allocations: 227.8 kB / 0.571 GB, free: 9.992 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002143/0.4294, allocations: 0.5591 MB / 0.5716 GB, free: 9.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.4294, allocations: 0 / 0.5716 GB, free: 9.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00189/0.4313, allocations: 0.6132 MB / 0.5722 GB, free: 8.812 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.4313, allocations: 4 kB / 0.5722 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4313, allocations: 0 / 0.5722 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.4314, allocations: 8 kB / 0.5722 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.432, allocations: 103.8 kB / 0.5723 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.4321, allocations: 4 kB / 0.5723 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004631/0.4325, allocations: 28.42 kB / 0.5723 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.122e-05/0.4326, allocations: 35.88 kB / 0.5723 GB, free: 8.633 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.0001582/0.4327, allocations: 117.8 kB / 0.5724 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.445e-05/0.4328, allocations: 7.953 kB / 0.5724 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.4349, allocations: 0.728 MB / 0.5732 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4349, allocations: 3.938 kB / 0.5732 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4349, allocations: 0 / 0.5732 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.435, allocations: 7.938 kB / 0.5732 GB, free: 7.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00408/0.439, allocations: 1.074 MB / 0.5742 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.439, allocations: 0 / 0.5742 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.4396, allocations: 95.86 kB / 0.5743 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.4396, allocations: 0 / 0.5743 GB, free: 6.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.122e-05/0.4397, allocations: 27.95 kB / 0.5743 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/0.4397, allocations: 11.92 kB / 0.5743 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4397, allocations: 8.125 kB / 0.5744 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.4413, allocations: 0.5807 MB / 0.5749 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.804e-05/0.4414, allocations: 15.95 kB / 0.5749 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.906e-05/0.4414, allocations: 3.984 kB / 0.5749 GB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004373/0.4419, allocations: 31.97 kB / 0.575 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.107e-05/0.4419, allocations: 15.91 kB / 0.575 GB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-05/0.442, allocations: 35.89 kB / 0.575 GB, free: 5.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.682e-05/0.442, allocations: 83.28 kB / 0.5751 GB, free: 5.676 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.442, allocations: 0 / 0.5751 GB, free: 5.676 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001753/0.4438, allocations: 0.6519 MB / 0.5757 GB, free: 5.023 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.005253/0.449, allocations: 1.302 MB / 0.577 GB, free: 3.672 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.4502, allocations: 443.5 kB / 0.5774 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.4502, allocations: 0 / 0.5774 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005216/0.4508, allocations: 187.8 kB / 0.5776 GB, free: 3.055 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.451, allocations: 21.2 kB / 0.5776 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.4544, allocations: 0.6167 MB / 0.5782 GB, free: 2.359 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.488e-05/0.4545, allocations: 75.56 kB / 0.5783 GB, free: 2.262 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004205/0.4549, allocations: 129 kB / 0.5784 GB, free: 2.133 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.4553, allocations: 99.28 kB / 0.5785 GB, free: 2.035 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4553, allocations: 0 / 0.5785 GB, free: 2.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09432/0.5496, allocations: 59.89 MB / 0.637 GB, free: 6.156 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.87, allocations: 11.94 kB / 0.637 GB, free: 6.145 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.797497263993137]