Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 216 kB / 23.73 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.38/1.38, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2152/0.2152, allocations: 46.96 MB / 360.9 MB, free: 4.062 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.89 kB / 0.4961 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2862, allocations: 66.04 MB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001685/0.2879, allocations: 0.5266 MB / 0.5611 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007508/0.2887, allocations: 378.9 kB / 0.5615 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.773e-05/0.2887, allocations: 0 / 0.5615 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.254e-05/0.2887, allocations: 0 / 0.5615 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.314e-05/0.2887, allocations: 3.938 kB / 0.5615 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.2892, allocations: 139.4 kB / 0.5616 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.074e-05/0.2893, allocations: 31.84 kB / 0.5616 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.437e-05/0.2893, allocations: 0 / 0.5616 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.097e-05/0.2893, allocations: 16 kB / 0.5616 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.052e-05/0.2894, allocations: 19.86 kB / 0.5617 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.2894, allocations: 0 / 0.5617 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.2896, allocations: 143.8 kB / 0.5618 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.2896, allocations: 8 kB / 0.5618 GB, free: 3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.688e-05/0.2897, allocations: 11.92 kB / 0.5618 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.2899, allocations: 129.5 kB / 0.5619 GB, free: 2.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2899, allocations: 3.938 kB / 0.5619 GB, free: 2.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2899, allocations: 0 / 0.5619 GB, free: 2.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.2899, allocations: 0 / 0.5619 GB, free: 2.859 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.0004037/0.2903, allocations: 296 kB / 0.5622 GB, free: 2.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.2903, allocations: 12.03 kB / 0.5622 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.036e-05/0.2903, allocations: 38.75 kB / 0.5623 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.536e-05/0.2904, allocations: 0.9375 kB / 0.5623 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.2905, allocations: 114.5 kB / 0.5624 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.2905, allocations: 384 / 0.5624 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.2905, allocations: 8.375 kB / 0.5624 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001291/0.2906, allocations: 57.94 kB / 0.5624 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.2906, allocations: 4 kB / 0.5624 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.2907, allocations: 0 / 0.5624 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2907, allocations: 0 / 0.5624 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.951e-05/0.2907, allocations: 27.97 kB / 0.5625 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001709/0.2909, allocations: 148.7 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.2911, allocations: 50.59 kB / 0.5627 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.739e-05/0.2911, allocations: 20.84 kB / 0.5627 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002505/0.2914, allocations: 35.97 kB / 0.5627 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.2914, allocations: 38.48 kB / 0.5628 GB, free: 1.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.2914, allocations: 0 / 0.5628 GB, free: 1.895 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.1454/0.4368, allocations: 6.386 MB / 0.569 GB, free: 11.47 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.4369, allocations: 51.88 kB / 0.569 GB, free: 11.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.277e-05/0.437, allocations: 109.8 kB / 0.5691 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.437, allocations: 25.7 kB / 0.5692 GB, free: 11.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.844e-05/0.4371, allocations: 92.12 kB / 0.5693 GB, free: 11.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.357e-05/0.4372, allocations: 59.44 kB / 0.5693 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.4374, allocations: 89.53 kB / 0.5694 GB, free: 11.01 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.4375, allocations: 326.8 kB / 0.5697 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005663/0.4381, allocations: 227.8 kB / 0.5699 GB, free: 10.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005552/0.4386, allocations: 231.8 kB / 0.5702 GB, free: 10.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002184/0.4408, allocations: 0.5579 MB / 0.5707 GB, free: 9.676 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4408, allocations: 4 kB / 0.5707 GB, free: 9.672 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00193/0.4427, allocations: 0.6066 MB / 0.5713 GB, free: 9.059 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4427, allocations: 7.984 kB / 0.5713 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4427, allocations: 4 kB / 0.5713 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.4428, allocations: 0 / 0.5713 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007564/0.4435, allocations: 111.8 kB / 0.5714 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.4435, allocations: 0 / 0.5714 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005048/0.444, allocations: 23.97 kB / 0.5714 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.624e-05/0.4441, allocations: 31.94 kB / 0.5715 GB, free: 8.883 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.0001676/0.4443, allocations: 121.8 kB / 0.5716 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.132e-05/0.4443, allocations: 7.953 kB / 0.5716 GB, free: 8.746 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.4466, allocations: 0.7298 MB / 0.5723 GB, free: 8.008 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.4466, allocations: 4 kB / 0.5723 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.4466, allocations: 7.938 kB / 0.5723 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.4466, allocations: 3.984 kB / 0.5723 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004368/0.451, allocations: 1.074 MB / 0.5734 GB, free: 6.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.451, allocations: 7.984 kB / 0.5734 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006056/0.4516, allocations: 99.78 kB / 0.5735 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.585e-06/0.4516, allocations: 4 kB / 0.5735 GB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.515e-05/0.4516, allocations: 27.95 kB / 0.5735 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.4516, allocations: 4 kB / 0.5735 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4517, allocations: 4 kB / 0.5735 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.4534, allocations: 0.5822 MB / 0.5741 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.756e-05/0.4534, allocations: 11.94 kB / 0.5741 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.203e-05/0.4535, allocations: 8 kB / 0.5741 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004684/0.454, allocations: 23.97 kB / 0.5741 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.938e-05/0.454, allocations: 19.97 kB / 0.5741 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.515e-05/0.454, allocations: 27.95 kB / 0.5742 GB, free: 6.008 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.904e-05/0.4541, allocations: 83.22 kB / 0.5742 GB, free: 5.926 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4541, allocations: 0 / 0.5742 GB, free: 5.926 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001709/0.4558, allocations: 0.6519 MB / 0.5749 GB, free: 5.273 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.005005/0.4608, allocations: 1.312 MB / 0.5762 GB, free: 3.914 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.462, allocations: 435.5 kB / 0.5766 GB, free: 3.488 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.462, allocations: 4 kB / 0.5766 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005255/0.4625, allocations: 195.7 kB / 0.5768 GB, free: 3.293 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.4628, allocations: 11.94 kB / 0.5768 GB, free: 3.281 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00339/0.4662, allocations: 0.6282 MB / 0.5774 GB, free: 2.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.253e-05/0.4663, allocations: 79.56 kB / 0.5775 GB, free: 2.488 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004242/0.4667, allocations: 129 kB / 0.5776 GB, free: 2.359 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003404/0.467, allocations: 95.28 kB / 0.5777 GB, free: 2.266 MB / 414.1 MB Notification: Performance of SimCode: time 4.7e-07/0.467, allocations: 0 / 0.5777 GB, free: 2.266 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09979/0.5668, allocations: 60.29 MB / 0.6366 GB, free: 6.07 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.63, allocations: 7.859 kB / 0.6366 GB, free: 6.062 MB / 478.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.422473850980168]