Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009399/0.0009399, allocations: 80.41 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.001009/0.001009, allocations: 167.2 kB / 25.61 MB, free: 8.902 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.9012/0.9012, allocations: 177.1 MB / 206 MB, free: 4.508 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.1523/0.1523, allocations: 34.26 MB / 296.9 MB, free: 13.95 MB / 282.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.TestRegSquare2Derivatives,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.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.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 379.3 MB, free: 23.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.533e-05/1.673e-05, allocations: 2.312 kB / 379.3 MB, free: 23.46 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0009463/0.000963, allocations: 0.54 MB / 379.8 MB, free: 22.92 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003987/0.001362, allocations: 342.6 kB / 380.1 MB, free: 22.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.718e-05/0.001389, allocations: 7.938 kB / 380.1 MB, free: 22.58 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.465e-05/0.001404, allocations: 0 / 380.1 MB, free: 22.58 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 2.978e-05/0.001433, allocations: 3.938 kB / 380.2 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002849/0.001718, allocations: 99.58 kB / 380.2 MB, free: 22.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.229e-05/0.00176, allocations: 23.97 kB / 380.3 MB, free: 22.45 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.001798, allocations: 4 kB / 380.3 MB, free: 22.45 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.746e-05/0.001826, allocations: 19.92 kB / 380.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.475e-05/0.00187, allocations: 15.97 kB / 380.3 MB, free: 22.41 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.001883, allocations: 4 kB / 380.3 MB, free: 22.41 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.002015, allocations: 107.9 kB / 380.4 MB, free: 22.3 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.269e-05/0.002028, allocations: 11.92 kB / 380.4 MB, free: 22.29 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.189e-05/0.00204, allocations: 4 kB / 380.4 MB, free: 22.29 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.002158, allocations: 127.6 kB / 380.6 MB, free: 22.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.00216, allocations: 0 / 380.6 MB, free: 22.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.00216, allocations: 0 / 380.6 MB, free: 22.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.002164, allocations: 0 / 380.6 MB, free: 22.16 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.0002358/0.002399, allocations: 384.3 kB / 380.9 MB, free: 21.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.002429, allocations: 16.02 kB / 381 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.002455, allocations: 12.89 kB / 381 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.139e-05/0.002506, allocations: 112.5 kB / 381.1 MB, free: 21.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-06/0.002516, allocations: 8.375 kB / 381.1 MB, free: 21.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.00253, allocations: 4.375 kB / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.6e-05/0.002586, allocations: 50.17 kB / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.002595, allocations: 192 / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.931e-06/0.002601, allocations: 4.375 kB / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.002605, allocations: 384 / 381.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.743e-05/0.002633, allocations: 19.92 kB / 381.2 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.456e-05/0.002717, allocations: 109.2 kB / 381.3 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.002835, allocations: 67.05 kB / 381.3 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.839e-05/0.002853, allocations: 19.69 kB / 381.4 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.002977, allocations: 35.94 kB / 381.4 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.201e-05/0.002989, allocations: 37.39 kB / 381.4 MB, free: 21.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=9): time 8.81e-07/0.00299, allocations: 0 / 381.4 MB, free: 21.18 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.01766/0.02065, allocations: 2.34 MB / 383.8 MB, free: 18.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.02067, allocations: 51.41 kB / 383.8 MB, free: 18.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.001e-05/0.02071, allocations: 161.9 kB / 384 MB, free: 18.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.02073, allocations: 29.7 kB / 384 MB, free: 18.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.665e-05/0.02075, allocations: 130.9 kB / 384.1 MB, free: 18.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.814e-05/0.0208, allocations: 67.42 kB / 384.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.178e-05/0.02087, allocations: 59.33 kB / 384.3 MB, free: 18.26 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.007e-05/0.02091, allocations: 0.4962 MB / 384.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.2e-05/0.021, allocations: 120 kB / 384.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.909e-05/0.02109, allocations: 124.1 kB / 385 MB, free: 17.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.02141, allocations: 306.7 kB / 385.3 MB, free: 17.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.02141, allocations: 7.938 kB / 385.3 MB, free: 17.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003472/0.02176, allocations: 357.5 kB / 385.6 MB, free: 16.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.02177, allocations: 7.938 kB / 385.7 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.02178, allocations: 4 kB / 385.7 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.02179, allocations: 0 / 385.7 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.02197, allocations: 67.94 kB / 385.7 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.02197, allocations: 7.938 kB / 385.7 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.977e-05/0.02206, allocations: 23.97 kB / 385.8 MB, free: 16.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.02208, allocations: 15.98 kB / 385.8 MB, free: 16.73 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.987e-05/0.02215, allocations: 160.6 kB / 385.9 MB, free: 16.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.02219, allocations: 19.89 kB / 385.9 MB, free: 16.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00044/0.02263, allocations: 437.8 kB / 386.4 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.02263, allocations: 7.984 kB / 386.4 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.02263, allocations: 0 / 386.4 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.02264, allocations: 0 / 386.4 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000825/0.02346, allocations: 0.7514 MB / 387.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.02346, allocations: 0 / 387.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.02359, allocations: 76.12 kB / 387.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.02359, allocations: 7.938 kB / 387.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.02361, allocations: 15.98 kB / 387.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.02361, allocations: 0 / 387.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.02361, allocations: 4 kB / 387.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002917/0.02391, allocations: 451.9 kB / 387.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-06/0.02392, allocations: 7.953 kB / 387.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.02394, allocations: 4 kB / 387.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.172e-05/0.02403, allocations: 27.97 kB / 387.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.629e-05/0.02404, allocations: 19.92 kB / 387.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.02406, allocations: 15.98 kB / 387.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.429e-05/0.02407, allocations: 127.2 kB / 387.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02407, allocations: 0 / 387.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005709/0.02465, allocations: 319.6 kB / 388.2 MB, free: 14.19 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.0008932/0.02554, allocations: 254.7 kB / 388.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.02577, allocations: 251.5 kB / 388.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.02578, allocations: 0 / 388.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.151e-05/0.02587, allocations: 122.9 kB / 388.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.02607, allocations: 30.22 kB / 388.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005367/0.0266, allocations: 404.6 kB / 389.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.571e-05/0.02663, allocations: 71.58 kB / 389.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000166/0.02679, allocations: 88.98 kB / 389.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.02696, allocations: 118.2 kB / 389.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of SimCode: time 1.273e-06/0.02696, allocations: 0 / 389.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of Templates: time 0.01635/0.04331, allocations: 19.71 MB / 409.2 MB, free: 9.098 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.0489594200626016]