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.00149/0.00149, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001068/0.001068, allocations: 167.1 kB / 24.99 MB, free: 8.297 MB / 18.57 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 0.9096/0.9096, allocations: 177.1 MB / 205.3 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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.2306/0.2306, allocations: 34.26 MB / 296 MB, free: 0.7852 MB / 266.7 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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 378 MB, free: 3.008 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.051e-05, allocations: 2.312 kB / 378 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001426/0.001446, allocations: 0.5477 MB / 378.5 MB, free: 2.453 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005141/0.001961, allocations: 382.8 kB / 378.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.552e-05/0.001986, allocations: 0 / 378.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.002002, allocations: 3.938 kB / 378.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.731e-05/0.002029, allocations: 0 / 378.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.002397, allocations: 143.4 kB / 379.1 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.206e-05/0.002449, allocations: 23.92 kB / 379.1 MB, free: 1.906 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.502e-05/0.002484, allocations: 7.969 kB / 379.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.871e-05/0.002513, allocations: 15.98 kB / 379.1 MB, free: 1.883 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.367e-05/0.002556, allocations: 7.984 kB / 379.1 MB, free: 1.875 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.002568, allocations: 7.938 kB / 379.1 MB, free: 1.867 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.002733, allocations: 135.8 kB / 379.3 MB, free: 1.734 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.002745, allocations: 4 kB / 379.3 MB, free: 1.73 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.653e-05/0.002761, allocations: 11.92 kB / 379.3 MB, free: 1.719 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.002917, allocations: 143.6 kB / 379.4 MB, free: 1.578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.002919, allocations: 4 kB / 379.4 MB, free: 1.574 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.00292, allocations: 4 kB / 379.4 MB, free: 1.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.002923, allocations: 0 / 379.4 MB, free: 1.57 MB / 346.7 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.0003214/0.003245, allocations: 400.2 kB / 379.8 MB, free: 1.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.003277, allocations: 8.031 kB / 379.8 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.003312, allocations: 8.891 kB / 379.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.982e-05/0.003392, allocations: 108.6 kB / 379.9 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.003404, allocations: 8.312 kB / 379.9 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.003425, allocations: 12.31 kB / 380 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.113e-05/0.003506, allocations: 46.25 kB / 380 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.003515, allocations: 4.188 kB / 380 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.003524, allocations: 8.312 kB / 380 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.003532, allocations: 4.125 kB / 380 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.003e-05/0.003572, allocations: 23.97 kB / 380 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001168/0.003689, allocations: 128.6 kB / 380.2 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.00384, allocations: 63.31 kB / 380.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.12e-05/0.003872, allocations: 23.62 kB / 380.3 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001524/0.004024, allocations: 31.95 kB / 380.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.004042, allocations: 37.39 kB / 380.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.004043, allocations: 4 kB / 380.3 MB, free: 0.543 MB / 346.7 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.05982/0.06387, allocations: 6.118 MB / 386.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.0639, allocations: 55.41 kB / 386.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.988e-05/0.06397, allocations: 161.9 kB / 386.7 MB, free: 10.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.064, allocations: 25.7 kB / 386.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.383e-05/0.06404, allocations: 134.9 kB / 386.8 MB, free: 9.965 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.0641, allocations: 63.38 kB / 386.9 MB, free: 9.902 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.06421, allocations: 91.25 kB / 387 MB, free: 9.805 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.06431, allocations: 0.4923 MB / 387.5 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.06455, allocations: 219.9 kB / 387.7 MB, free: 9.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.06477, allocations: 214.6 kB / 387.9 MB, free: 8.879 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009508/0.06573, allocations: 0.5033 MB / 388.4 MB, free: 8.371 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.06573, allocations: 0 / 388.4 MB, free: 8.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008704/0.0666, allocations: 0.5816 MB / 389 MB, free: 7.785 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.06661, allocations: 8 kB / 389 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.06662, allocations: 0 / 389 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.06663, allocations: 0 / 389 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/0.06693, allocations: 103.8 kB / 389.1 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.06694, allocations: 8 kB / 389.1 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.06712, allocations: 16.23 kB / 389.1 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/0.06716, allocations: 35.94 kB / 389.1 MB, free: 7.617 MB / 362.7 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.0001057/0.06727, allocations: 160.5 kB / 389.3 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.06733, allocations: 23.88 kB / 389.3 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.06835, allocations: 0.6852 MB / 390 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.06835, allocations: 4 kB / 390 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.06835, allocations: 0 / 390 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.06836, allocations: 3.984 kB / 390 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001872/0.07023, allocations: 1.037 MB / 391 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.07024, allocations: 4 kB / 391 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.07047, allocations: 100 kB / 391.1 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.07048, allocations: 4 kB / 391.1 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.0705, allocations: 23.95 kB / 391.2 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.07051, allocations: 11.88 kB / 391.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.07051, allocations: 0 / 391.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000761/0.07127, allocations: 0.5837 MB / 391.8 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-06/0.07128, allocations: 15.89 kB / 391.8 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.07133, allocations: 11.98 kB / 391.8 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.0715, allocations: 19.92 kB / 391.8 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.07153, allocations: 23.91 kB / 391.8 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.07156, allocations: 27.95 kB / 391.9 MB, free: 4.754 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.075e-05/0.07159, allocations: 123.2 kB / 392 MB, free: 4.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.07159, allocations: 0 / 392 MB, free: 4.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001108/0.0727, allocations: 0.6519 MB / 392.6 MB, free: 3.98 MB / 362.7 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.002163/0.07486, allocations: 334.1 kB / 393 MB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005062/0.07536, allocations: 432.7 kB / 393.4 MB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.07537, allocations: 0 / 393.4 MB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.07557, allocations: 191.8 kB / 393.6 MB, free: 3.031 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.07579, allocations: 54.52 kB / 393.6 MB, free: 2.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.07685, allocations: 0.5119 MB / 394.1 MB, free: 2.414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.726e-05/0.07689, allocations: 67.58 kB / 394.2 MB, free: 2.324 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002627/0.07716, allocations: 129.2 kB / 394.3 MB, free: 2.195 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.07736, allocations: 84.36 kB / 394.4 MB, free: 2.113 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.07736, allocations: 0 / 394.4 MB, free: 2.113 MB / 362.7 MB Notification: Performance of Templates: time 0.1645/0.2418, allocations: 59.58 MB / 454 MB, free: 105.2 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4566349498927593]