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.001911/0.001911, allocations: 84.31 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002339/0.002339, allocations: 164 kB / 23.95 MB, free: 4.156 MB / 14.72 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 1.483/1.483, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.2121/0.2121, allocations: 34.29 MB / 295 MB, free: 14.56 MB / 286.1 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.843e-06/1.843e-06, allocations: 0 / 442.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.356e-05/2.541e-05, allocations: 2.281 kB / 442.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001628/0.001653, allocations: 0.5472 MB / 443.2 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007661/0.002419, allocations: 330.8 kB / 443.5 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.475e-05/0.002454, allocations: 0 / 443.5 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.002469, allocations: 7.938 kB / 443.5 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.025e-05/0.002509, allocations: 3.938 kB / 443.5 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.002983, allocations: 99.53 kB / 443.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.526e-05/0.003048, allocations: 35.89 kB / 443.7 MB, free: 4.391 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.164e-05/0.00309, allocations: 8 kB / 443.7 MB, free: 4.383 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.856e-05/0.003128, allocations: 15.98 kB / 443.7 MB, free: 4.367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.148e-05/0.00319, allocations: 15.91 kB / 443.7 MB, free: 4.352 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.003206, allocations: 0 / 443.7 MB, free: 4.352 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000258/0.003464, allocations: 103.9 kB / 443.8 MB, free: 4.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.366e-05/0.003487, allocations: 15.97 kB / 443.8 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.928e-05/0.003517, allocations: 7.938 kB / 443.8 MB, free: 4.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.003746, allocations: 111.7 kB / 443.9 MB, free: 4.117 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.003749, allocations: 0 / 443.9 MB, free: 4.117 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.00375, allocations: 0 / 443.9 MB, free: 4.117 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.003755, allocations: 4 kB / 444 MB, free: 4.113 MB / 366.1 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.0004745/0.004229, allocations: 290 kB / 444.2 MB, free: 3.797 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.004266, allocations: 12.03 kB / 444.2 MB, free: 3.785 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.004306, allocations: 4.891 kB / 444.3 MB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.00444, allocations: 113.7 kB / 444.4 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.004454, allocations: 384 / 444.4 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.004479, allocations: 12.31 kB / 444.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/0.004626, allocations: 50.25 kB / 444.4 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.004643, allocations: 8.141 kB / 444.4 MB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.004655, allocations: 384 / 444.4 MB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.004661, allocations: 384 / 444.4 MB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.301e-05/0.004754, allocations: 43.78 kB / 444.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001976/0.004952, allocations: 113.3 kB / 444.6 MB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.005194, allocations: 54.55 kB / 444.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.365e-05/0.005248, allocations: 20.86 kB / 444.7 MB, free: 3.301 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000257/0.005505, allocations: 27.95 kB / 444.7 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.005539, allocations: 42.78 kB / 444.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.00554, allocations: 0 / 444.7 MB, free: 3.223 MB / 366.1 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.04671/0.05225, allocations: 2.565 MB / 447.3 MB, free: 0.625 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.05231, allocations: 63.34 kB / 447.4 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.05241, allocations: 101.8 kB / 447.5 MB, free: 452 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.05246, allocations: 29.7 kB / 447.5 MB, free: 416 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.05251, allocations: 84.14 kB / 447.6 MB, free: 328 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.212e-05/0.0526, allocations: 63.42 kB / 447.6 MB, free: 264 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.05275, allocations: 61.69 kB / 447.7 MB, free: 196 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.1899/0.2427, allocations: 318.8 kB / 448 MB, free: 18.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.2431, allocations: 168.1 kB / 448.2 MB, free: 18.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.2435, allocations: 179.7 kB / 448.3 MB, free: 18.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.2447, allocations: 417.1 kB / 448.7 MB, free: 18.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2447, allocations: 0 / 448.7 MB, free: 18.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00117/0.2459, allocations: 467.7 kB / 449.2 MB, free: 17.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.2459, allocations: 5.25 kB / 449.2 MB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2459, allocations: 0 / 449.2 MB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.246, allocations: 1.906 kB / 449.2 MB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004089/0.2464, allocations: 75.47 kB / 449.3 MB, free: 17.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.2464, allocations: 1.156 kB / 449.3 MB, free: 17.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.2466, allocations: 20.3 kB / 449.3 MB, free: 17.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-05/0.2467, allocations: 20.42 kB / 449.3 MB, free: 17.92 MB / 366.1 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.0001162/0.2468, allocations: 115.5 kB / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-05/0.2468, allocations: 7.969 kB / 449.4 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.2481, allocations: 0.5372 MB / 450 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2481, allocations: 2.906 kB / 450 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2481, allocations: 7.688 kB / 450 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.2482, allocations: 2.984 kB / 450 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.2503, allocations: 0.7917 MB / 450.8 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2503, allocations: 1.281 kB / 450.8 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.2506, allocations: 65.08 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.2506, allocations: 2.531 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.2506, allocations: 13.47 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.2506, allocations: 3.641 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2506, allocations: 8.781 kB / 450.9 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009409/0.2516, allocations: 463.5 kB / 451.3 MB, free: 16.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.527e-05/0.2516, allocations: 8.188 kB / 451.3 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.2516, allocations: 9.766 kB / 451.4 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.2518, allocations: 24.53 kB / 451.4 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.2519, allocations: 19.94 kB / 451.4 MB, free: 16.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/0.2519, allocations: 20.86 kB / 451.4 MB, free: 16.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.674e-05/0.2519, allocations: 81.39 kB / 451.5 MB, free: 16.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2519, allocations: 0 / 451.5 MB, free: 16.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008662/0.2528, allocations: 319 kB / 451.8 MB, free: 16.84 MB / 366.1 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.001518/0.2543, allocations: 256.3 kB / 452.1 MB, free: 16.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008641/0.2552, allocations: 326.4 kB / 452.4 MB, free: 16.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2552, allocations: 1.156 kB / 452.4 MB, free: 16.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003658/0.2556, allocations: 145.1 kB / 452.5 MB, free: 16.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.2558, allocations: 12.47 kB / 452.5 MB, free: 16.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.2572, allocations: 422.1 kB / 452.9 MB, free: 16.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.508e-05/0.2572, allocations: 77.64 kB / 453 MB, free: 16.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002848/0.2575, allocations: 97.84 kB / 453.1 MB, free: 16.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.2577, allocations: 48.44 kB / 453.2 MB, free: 16.28 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2577, allocations: 0 / 453.2 MB, free: 16.28 MB / 366.1 MB Notification: Performance of Templates: time 0.02305/0.2807, allocations: 18.03 MB / 471.2 MB, free: 9.102 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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: 5.082666892558336]