Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001657/0.002748, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007479/0.0007479, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001389/0.002137, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8698/0.8698, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1964/1.066, allocations: 52.5 MB / 238.5 MB, free: 7.629 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1324/0.1324, allocations: 32.79 MB / 272 MB, free: 6.305 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01959/0.152, allocations: 12.54 MB / 284.5 MB, free: 9.727 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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.0.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.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 285.8 MB, free: 8.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.847e-05, allocations: 5.406 kB / 285.8 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001012/0.001031, allocations: 0.5937 MB / 286.4 MB, free: 7.848 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004069/0.001438, allocations: 382.7 kB / 286.8 MB, free: 7.469 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.694e-05/0.001455, allocations: 4 kB / 286.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.218e-06/0.001459, allocations: 0 / 286.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.158e-06/0.001468, allocations: 3.938 kB / 286.8 MB, free: 7.461 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000244/0.001712, allocations: 119.4 kB / 286.9 MB, free: 7.344 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.651e-05/0.001759, allocations: 27.91 kB / 287 MB, free: 7.316 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.291e-05/0.001791, allocations: 7.984 kB / 287 MB, free: 7.309 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.466e-05/0.001836, allocations: 23.98 kB / 287 MB, free: 7.285 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.738e-05/0.001884, allocations: 19.91 kB / 287 MB, free: 7.266 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.001893, allocations: 0 / 287 MB, free: 7.266 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.002097, allocations: 151.8 kB / 287.2 MB, free: 7.117 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.002111, allocations: 7.938 kB / 287.2 MB, free: 7.109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.123e-05/0.002122, allocations: 8 kB / 287.2 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.002268, allocations: 119.6 kB / 287.3 MB, free: 6.984 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.507e-06/0.002278, allocations: 0 / 287.3 MB, free: 6.984 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.002278, allocations: 0 / 287.3 MB, free: 6.984 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.002286, allocations: 0 / 287.3 MB, free: 6.984 MB / 282.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.0002872/0.002573, allocations: 288.3 kB / 287.6 MB, free: 6.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.611e-05/0.002599, allocations: 8.031 kB / 287.6 MB, free: 6.672 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.562e-05/0.002625, allocations: 12.92 kB / 287.6 MB, free: 6.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.611e-05/0.002691, allocations: 113.7 kB / 287.7 MB, free: 6.523 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.423e-06/0.002698, allocations: 384 / 287.7 MB, free: 6.523 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.002724, allocations: 8.328 kB / 287.7 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.319e-05/0.002787, allocations: 46.23 kB / 287.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.002796, allocations: 8.172 kB / 287.8 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-06/0.002802, allocations: 4.375 kB / 287.8 MB, free: 6.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.002807, allocations: 4.125 kB / 287.8 MB, free: 6.449 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.879e-05/0.002836, allocations: 15.98 kB / 287.8 MB, free: 6.434 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.769e-05/0.002913, allocations: 68.98 kB / 287.9 MB, free: 6.352 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.003037, allocations: 42.56 kB / 287.9 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.823e-05/0.003055, allocations: 12.86 kB / 287.9 MB, free: 6.285 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001299/0.003185, allocations: 35.95 kB / 287.9 MB, free: 6.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.734e-05/0.003202, allocations: 34.56 kB / 288 MB, free: 6.207 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 6.92e-07/0.003203, allocations: 0 / 288 MB, free: 6.207 MB / 282.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.03788/0.04109, allocations: 5.88 MB / 293.9 MB, free: 276 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.04112, allocations: 51.41 kB / 293.9 MB, free: 212 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.976e-05/0.04118, allocations: 110.7 kB / 294 MB, free: 88 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.04122, allocations: 29.64 kB / 294 MB, free: 52 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.04126, allocations: 87.89 kB / 294.1 MB, free: 15.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.377e-05/0.04136, allocations: 67.41 kB / 294.2 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.04149, allocations: 77.53 kB / 294.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.04167, allocations: 322.8 kB / 294.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.04189, allocations: 227.9 kB / 294.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.04209, allocations: 242.4 kB / 295 MB, free: 15.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004313/0.04252, allocations: 488.6 kB / 295.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.04252, allocations: 0 / 295.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005267/0.04305, allocations: 0.5119 MB / 296 MB, free: 14.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.04307, allocations: 11.94 kB / 296 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.04307, allocations: 0 / 296 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.04309, allocations: 0 / 296 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004715/0.04356, allocations: 155.6 kB / 296.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.04356, allocations: 0 / 296.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.04375, allocations: 23.97 kB / 296.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.482e-05/0.0438, allocations: 27.91 kB / 296.2 MB, free: 13.82 MB / 298.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.0001265/0.04392, allocations: 121.8 kB / 296.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.04399, allocations: 15.94 kB / 296.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007937/0.04479, allocations: 0.6891 MB / 297.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.04479, allocations: 0 / 297.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.04479, allocations: 0 / 297.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.0448, allocations: 3.984 kB / 297.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.04636, allocations: 0.8273 MB / 297.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.04637, allocations: 0 / 297.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/0.04672, allocations: 135.6 kB / 298 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.402e-05/0.04674, allocations: 11.95 kB / 298 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.04674, allocations: 3.938 kB / 298 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/0.04691, allocations: 23.94 kB / 298.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.04692, allocations: 7.984 kB / 298.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.04692, allocations: 4.125 kB / 298.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004292/0.04735, allocations: 460.4 kB / 298.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.04739, allocations: 4 kB / 298.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.04756, allocations: 19.98 kB / 298.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.219e-05/0.04758, allocations: 23.84 kB / 298.6 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.04762, allocations: 23.94 kB / 298.6 MB, free: 11.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.519e-05/0.04763, allocations: 8.859 kB / 298.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.04763, allocations: 0 / 298.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001126/0.04876, allocations: 0.5191 MB / 299.1 MB, free: 10.84 MB / 298.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.001481/0.05024, allocations: 299.7 kB / 299.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005016/0.05074, allocations: 468 kB / 299.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/0.05076, allocations: 4 kB / 299.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.05097, allocations: 204.6 kB / 300.1 MB, free: 9.871 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.05118, allocations: 67.88 kB / 300.2 MB, free: 9.805 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.05228, allocations: 0.4979 MB / 300.7 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.687e-05/0.05232, allocations: 63.59 kB / 300.7 MB, free: 9.172 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004249/0.05275, allocations: 221 kB / 300.9 MB, free: 8.953 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004001/0.05315, allocations: 123.2 kB / 301 MB, free: 8.832 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.05315, allocations: 0 / 301 MB, free: 8.832 MB / 298.7 MB Notification: Performance of Templates: time 0.16/0.2132, allocations: 51.69 MB / 352.7 MB, free: 13.13 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.647786375135183]