Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.001441/0.001441, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001017/0.001017, allocations: 168.7 kB / 25.61 MB, free: 8.582 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.9445/0.9445, allocations: 177.1 MB / 206 MB, free: 4.477 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.1395/0.1395, allocations: 32.8 MB / 295.4 MB, free: 15.38 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.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.TestRegSquare2Derivatives,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.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,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.TestRegSquare2Derivatives") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.887e-05/2.041e-05, allocations: 2.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001142/0.001162, allocations: 0.5416 MB / 377.8 MB, free: 25.08 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004112/0.001574, allocations: 334.7 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.627e-05/0.0016, allocations: 3.938 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.537e-05/0.001615, allocations: 0 / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 2.901e-05/0.001644, allocations: 3.938 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.001931, allocations: 111.6 kB / 378.2 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.337e-05/0.001974, allocations: 23.92 kB / 378.3 MB, free: 24.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.576e-05/0.00201, allocations: 3.984 kB / 378.3 MB, free: 24.61 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.798e-05/0.002038, allocations: 19.98 kB / 378.3 MB, free: 24.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.404e-05/0.002082, allocations: 11.92 kB / 378.3 MB, free: 24.58 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.645e-05/0.002098, allocations: 4 kB / 378.3 MB, free: 24.57 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.002236, allocations: 111.9 kB / 378.4 MB, free: 24.46 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.154e-05/0.002247, allocations: 4 kB / 378.4 MB, free: 24.46 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.346e-05/0.002261, allocations: 19.91 kB / 378.4 MB, free: 24.44 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.002374, allocations: 115.7 kB / 378.5 MB, free: 24.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.002376, allocations: 0 / 378.5 MB, free: 24.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.002377, allocations: 0 / 378.5 MB, free: 24.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.085e-06/0.00238, allocations: 0 / 378.5 MB, free: 24.33 MB / 314.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.0002296/0.00261, allocations: 396.3 kB / 378.9 MB, free: 23.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.752e-05/0.002637, allocations: 11.98 kB / 378.9 MB, free: 23.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.42e-05/0.002661, allocations: 8.891 kB / 378.9 MB, free: 23.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.995e-05/0.002711, allocations: 112.6 kB / 379.1 MB, free: 23.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.00272, allocations: 4.312 kB / 379.1 MB, free: 23.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.423e-05/0.002734, allocations: 8.375 kB / 379.1 MB, free: 23.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.774e-05/0.002792, allocations: 54.17 kB / 379.1 MB, free: 23.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.0028, allocations: 4.172 kB / 379.1 MB, free: 23.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.453e-06/0.002807, allocations: 384 / 379.1 MB, free: 23.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.002811, allocations: 384 / 379.1 MB, free: 23.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.481e-05/0.002836, allocations: 19.92 kB / 379.1 MB, free: 23.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.268e-05/0.002919, allocations: 109.2 kB / 379.2 MB, free: 23.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/0.003033, allocations: 67.06 kB / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.534e-05/0.003059, allocations: 23.66 kB / 379.3 MB, free: 23.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.003185, allocations: 27.97 kB / 379.4 MB, free: 23.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.003199, allocations: 37.39 kB / 379.4 MB, free: 23.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=9): time 8.92e-07/0.0032, allocations: 0 / 379.4 MB, free: 23.34 MB / 314.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.01735/0.02055, allocations: 2.339 MB / 381.7 MB, free: 20.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.02058, allocations: 55.41 kB / 381.8 MB, free: 20.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.025e-05/0.02062, allocations: 153.9 kB / 381.9 MB, free: 20.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.02064, allocations: 29.69 kB / 382 MB, free: 20.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.888e-05/0.02066, allocations: 142.8 kB / 382.1 MB, free: 20.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/0.0207, allocations: 59.42 kB / 382.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.351e-05/0.02078, allocations: 67.34 kB / 382.2 MB, free: 20.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.497e-05/0.02082, allocations: 0.4923 MB / 382.7 MB, free: 19.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.125e-05/0.02091, allocations: 116 kB / 382.8 MB, free: 19.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.67e-05/0.02101, allocations: 123.9 kB / 383 MB, free: 19.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.02133, allocations: 303.6 kB / 383.3 MB, free: 19.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.02133, allocations: 0 / 383.3 MB, free: 19.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003399/0.02167, allocations: 364.3 kB / 383.6 MB, free: 19.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.02168, allocations: 9.5 kB / 383.6 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.02168, allocations: 0 / 383.6 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.02169, allocations: 0 / 383.6 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.02187, allocations: 75.94 kB / 383.7 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.136e-06/0.02188, allocations: 4 kB / 383.7 MB, free: 18.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.909e-05/0.02197, allocations: 19.97 kB / 383.7 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.02199, allocations: 19.92 kB / 383.7 MB, free: 18.89 MB / 314.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 6.6e-05/0.02205, allocations: 160.6 kB / 383.9 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.02209, allocations: 15.89 kB / 383.9 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004369/0.02253, allocations: 441.9 kB / 384.3 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.02253, allocations: 0 / 384.3 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.02253, allocations: 4.188 kB / 384.4 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.02253, allocations: 0 / 384.4 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008096/0.02334, allocations: 0.7631 MB / 385.1 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.02335, allocations: 8.188 kB / 385.1 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.02347, allocations: 67.94 kB / 385.2 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.02348, allocations: 0 / 385.2 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.02349, allocations: 19.98 kB / 385.2 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.02349, allocations: 7.938 kB / 385.2 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.0235, allocations: 3.984 kB / 385.2 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.02379, allocations: 441.7 kB / 385.7 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.022e-05/0.0238, allocations: 11.95 kB / 385.7 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.02382, allocations: 8 kB / 385.7 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.331e-05/0.02392, allocations: 27.91 kB / 385.7 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.748e-05/0.02394, allocations: 15.92 kB / 385.7 MB, free: 16.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.02395, allocations: 15.98 kB / 385.7 MB, free: 16.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.82e-05/0.02397, allocations: 127.2 kB / 385.9 MB, free: 16.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02397, allocations: 0 / 385.9 MB, free: 16.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005804/0.02455, allocations: 315.6 kB / 386.2 MB, free: 16.35 MB / 314.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.0008855/0.02544, allocations: 258.7 kB / 386.4 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002321/0.02567, allocations: 257.5 kB / 386.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.02567, allocations: 0 / 386.7 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.667e-05/0.02576, allocations: 115.5 kB / 386.8 MB, free: 15.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.02594, allocations: 27.98 kB / 386.8 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005164/0.02646, allocations: 408.6 kB / 387.2 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.611e-05/0.02649, allocations: 63.58 kB / 387.3 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.02665, allocations: 88.98 kB / 387.4 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.02681, allocations: 118.2 kB / 387.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.02681, allocations: 0 / 387.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of Templates: time 0.01402/0.04083, allocations: 19.71 MB / 407.2 MB, free: 11.27 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.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.1241904497146606]