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.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.0009162/0.0009162, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003502/0.003502, allocations: 163.3 kB / 24.7 MB, free: 9.43 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.883/0.883, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.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.2374/0.2374, allocations: 32.8 MB / 294.2 MB, free: 1.199 MB / 266.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.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.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.253e-06/1.253e-06, allocations: 0 / 440.8 MB, free: 3.793 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.618e-05/1.743e-05, allocations: 7.547 kB / 440.8 MB, free: 3.785 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0009409/0.0009583, allocations: 0.5343 MB / 441.4 MB, free: 3.254 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007898/0.001748, allocations: 370.8 kB / 441.7 MB, free: 2.887 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.001773, allocations: 0 / 441.7 MB, free: 2.887 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.781e-05/0.001791, allocations: 3.938 kB / 441.7 MB, free: 2.883 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.942e-05/0.00182, allocations: 4 kB / 441.7 MB, free: 2.879 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003857/0.002206, allocations: 139.4 kB / 441.9 MB, free: 2.742 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.511e-05/0.002261, allocations: 23.92 kB / 441.9 MB, free: 2.719 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.374e-05/0.002305, allocations: 3.984 kB / 441.9 MB, free: 2.715 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.369e-05/0.002338, allocations: 19.98 kB / 441.9 MB, free: 2.695 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.459e-05/0.002393, allocations: 11.97 kB / 441.9 MB, free: 2.684 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.002406, allocations: 4 kB / 441.9 MB, free: 2.68 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000167/0.002573, allocations: 139.7 kB / 442.1 MB, free: 2.543 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.357e-05/0.002587, allocations: 7.984 kB / 442.1 MB, free: 2.535 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.614e-05/0.002603, allocations: 7.938 kB / 442.1 MB, free: 2.527 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001678/0.002771, allocations: 143.7 kB / 442.2 MB, free: 2.387 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.002773, allocations: 0 / 442.2 MB, free: 2.387 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.002773, allocations: 0 / 442.2 MB, free: 2.387 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.002777, allocations: 0 / 442.2 MB, free: 2.387 MB / 410.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.0003308/0.003108, allocations: 301.9 kB / 442.5 MB, free: 2.062 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.003144, allocations: 12.03 kB / 442.5 MB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.881e-05/0.003173, allocations: 0.9375 kB / 442.5 MB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.719e-05/0.00325, allocations: 113.7 kB / 442.6 MB, free: 1.914 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.00326, allocations: 384 / 442.6 MB, free: 1.914 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.003281, allocations: 8.375 kB / 442.7 MB, free: 1.906 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.00339, allocations: 62.11 kB / 442.7 MB, free: 1.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.003401, allocations: 8.125 kB / 442.7 MB, free: 1.832 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.003409, allocations: 384 / 442.7 MB, free: 1.832 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.003415, allocations: 4.125 kB / 442.7 MB, free: 1.828 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.297e-05/0.003468, allocations: 23.98 kB / 442.8 MB, free: 1.805 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.003588, allocations: 121.2 kB / 442.9 MB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.003754, allocations: 54.59 kB / 442.9 MB, free: 1.594 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.501e-05/0.003789, allocations: 24.84 kB / 443 MB, free: 1.566 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001559/0.003945, allocations: 27.95 kB / 443 MB, free: 1.539 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.552e-05/0.003961, allocations: 34.56 kB / 443 MB, free: 1.496 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 9.02e-07/0.003962, allocations: 0 / 443 MB, free: 1.496 MB / 410.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.2333/0.2373, allocations: 6.381 MB / 449.4 MB, free: 45.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.2373, allocations: 54.38 kB / 449.4 MB, free: 45.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.975e-05/0.2374, allocations: 103.5 kB / 449.5 MB, free: 45.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.2374, allocations: 28.61 kB / 449.6 MB, free: 45.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.795e-05/0.2374, allocations: 86.02 kB / 449.7 MB, free: 45.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.797e-05/0.2375, allocations: 66.08 kB / 449.7 MB, free: 45.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.2376, allocations: 85.86 kB / 449.8 MB, free: 45.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.503e-05/0.2376, allocations: 327.4 kB / 450.1 MB, free: 45.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002949/0.2379, allocations: 227.8 kB / 450.3 MB, free: 45.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/0.2382, allocations: 230.8 kB / 450.6 MB, free: 45.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.2393, allocations: 0.5596 MB / 451.1 MB, free: 44.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2393, allocations: 0 / 451.1 MB, free: 44.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009665/0.2402, allocations: 0.6131 MB / 451.7 MB, free: 44.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.2402, allocations: 6.406 kB / 451.8 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.2402, allocations: 4 kB / 451.8 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2403, allocations: 1.969 kB / 451.8 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002975/0.2406, allocations: 106 kB / 451.9 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.2406, allocations: 3.375 kB / 451.9 MB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.2408, allocations: 27.33 kB / 451.9 MB, free: 44.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.425e-05/0.2408, allocations: 29.36 kB / 451.9 MB, free: 44.72 MB / 410.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 9.042e-05/0.2409, allocations: 125.8 kB / 452 MB, free: 44.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.2409, allocations: 11.14 kB / 452.1 MB, free: 44.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.2421, allocations: 0.7259 MB / 452.8 MB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2421, allocations: 2.875 kB / 452.8 MB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2421, allocations: 0 / 452.8 MB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2421, allocations: 3.281 kB / 452.8 MB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.2441, allocations: 1.06 MB / 453.8 MB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2441, allocations: 0 / 453.8 MB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.2443, allocations: 98.8 kB / 453.9 MB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.2444, allocations: 10.09 kB / 454 MB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.2444, allocations: 29.08 kB / 454 MB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2444, allocations: 8.125 kB / 454 MB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2444, allocations: 6.156 kB / 454 MB, free: 43.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008629/0.2452, allocations: 0.5646 MB / 454.6 MB, free: 43.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.07e-05/0.2453, allocations: 10.61 kB / 454.6 MB, free: 43.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.2453, allocations: 11.22 kB / 454.6 MB, free: 43.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.2455, allocations: 29.27 kB / 454.6 MB, free: 43.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.035e-05/0.2455, allocations: 16.98 kB / 454.6 MB, free: 43.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.2455, allocations: 25.77 kB / 454.7 MB, free: 43.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.988e-05/0.2455, allocations: 87.38 kB / 454.7 MB, free: 43.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2455, allocations: 0 / 454.7 MB, free: 43.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001116/0.2467, allocations: 0.6465 MB / 455.4 MB, free: 43.48 MB / 410.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.002074/0.2487, allocations: 327.5 kB / 455.7 MB, free: 43.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.2494, allocations: 441.3 kB / 456.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2494, allocations: 0 / 456.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.2497, allocations: 199.3 kB / 456.3 MB, free: 43.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.2499, allocations: 21 kB / 456.3 MB, free: 43.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.251, allocations: 0.5408 MB / 456.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.356e-05/0.2511, allocations: 90.19 kB / 457 MB, free: 42.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.2513, allocations: 92.56 kB / 457.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2513, allocations: 0 / 457.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of Templates: time 0.01616/0.2674, allocations: 15.99 MB / 473.1 MB, free: 41.41 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 6.32834851462394]