Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.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.0008614/0.0008614, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001035/0.001897, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007071/0.0007071, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008957/0.001603, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.1/1.1, allocations: 177.2 MB / 189.6 MB, free: 5.297 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1292/1.229, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.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.3274/0.3274, allocations: 32.81 MB / 276.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03766/0.365, allocations: 12.53 MB / 289.3 MB, free: 8.66 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.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 290.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.746e-05/3.938e-05, allocations: 3.297 kB / 290.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.002485/0.002524, allocations: 0.5415 MB / 291.1 MB, free: 7.238 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.004352, allocations: 0.7584 MB / 291.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.401e-05/0.004376, allocations: 0 / 291.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.126e-06/0.004384, allocations: 0 / 291.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.226e-06/0.004388, allocations: 0 / 291.9 MB, free: 6.668 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:612:3-661:14:writable] Warning: Pure function 'ModelicaTest.Math.Vectors' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002401/0.006789, allocations: 0.642 MB / 292.5 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.226e-05/0.006861, allocations: 5.969 kB / 292.5 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.812e-05/0.006909, allocations: 10 kB / 292.5 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.517e-05/0.006954, allocations: 0 / 292.5 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.808e-05/0.006982, allocations: 2 kB / 292.5 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.127e-06/0.006991, allocations: 0 / 292.5 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009594/0.007951, allocations: 417.5 kB / 293 MB, free: 5.941 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.007963, allocations: 0 / 293 MB, free: 5.941 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.11e-05/0.007984, allocations: 4 kB / 293 MB, free: 5.938 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005609/0.008545, allocations: 319.2 kB / 293.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.043e-05/0.008565, allocations: 0 / 293.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.008567, allocations: 0 / 293.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.008585, allocations: 8 kB / 293.3 MB, free: 5.617 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004794/0.009064, allocations: 305.9 kB / 293.6 MB, free: 5.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.009108, allocations: 15.92 kB / 293.6 MB, free: 5.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.275e-05/0.009151, allocations: 0.9375 kB / 293.6 MB, free: 5.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.715e-05/0.009228, allocations: 105.8 kB / 293.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.009239, allocations: 384 / 293.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-06/0.009246, allocations: 384 / 293.7 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.37e-05/0.00934, allocations: 55.97 kB / 293.8 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.009348, allocations: 192 / 293.8 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.009357, allocations: 384 / 293.8 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.009363, allocations: 4.375 kB / 293.8 MB, free: 5.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.097e-05/0.009394, allocations: 37.62 kB / 293.8 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.44e-05/0.009488, allocations: 61.03 kB / 293.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.973e-05/0.009548, allocations: 48.25 kB / 293.9 MB, free: 4.891 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.517e-05/0.009573, allocations: 34.62 kB / 293.9 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.318e-06/0.009577, allocations: 0 / 293.9 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.009622, allocations: 56.27 kB / 294 MB, free: 4.777 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.332e-06/0.009623, allocations: 3.938 kB / 294 MB, free: 4.773 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001767/0.0098, allocations: 114.8 kB / 294.1 MB, free: 4.637 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.009854, allocations: 81.17 kB / 294.2 MB, free: 4.539 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.12e-05/0.009906, allocations: 93.86 kB / 294.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.009918, allocations: 25.7 kB / 294.3 MB, free: 4.406 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.186e-05/0.00995, allocations: 84.14 kB / 294.4 MB, free: 4.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.009975, allocations: 7.938 kB / 294.4 MB, free: 4.312 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/0.01001, allocations: 17.7 kB / 294.4 MB, free: 4.289 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.01013, allocations: 318.8 kB / 294.7 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.663e-05/0.01016, allocations: 25.7 kB / 294.7 MB, free: 3.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.877e-05/0.01018, allocations: 25.7 kB / 294.8 MB, free: 3.906 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.766e-05/0.01024, allocations: 60.27 kB / 294.8 MB, free: 3.832 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.01025, allocations: 8.062 kB / 294.8 MB, free: 3.824 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.186e-05/0.01034, allocations: 89.03 kB / 294.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.01039, allocations: 29.7 kB / 295 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.0104, allocations: 4 kB / 295 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.01041, allocations: 0 / 295 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.291e-06/0.01042, allocations: 0 / 295 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.647e-06/0.01042, allocations: 0 / 295 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.301e-05/0.01045, allocations: 0 / 295 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.01045, allocations: 0 / 295 MB, free: 3.68 MB / 282.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001011/0.01056, allocations: 143.5 kB / 295.1 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.387e-06/0.01057, allocations: 4.031 kB / 295.1 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.276e-05/0.01058, allocations: 3 kB / 295.1 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.01058, allocations: 4 kB / 295.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.01058, allocations: 0 / 295.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01059, allocations: 0 / 295.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.161e-05/0.01067, allocations: 70.52 kB / 295.2 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.01067, allocations: 0 / 295.2 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.533e-06/0.01067, allocations: 0 / 295.2 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.969e-06/0.01068, allocations: 7.984 kB / 295.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.01069, allocations: 0 / 295.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.01069, allocations: 4 kB / 295.2 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.0107, allocations: 4 kB / 295.2 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.0107, allocations: 0 / 295.2 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.01082, allocations: 120.4 kB / 295.3 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.01084, allocations: 3.938 kB / 295.3 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.01085, allocations: 0 / 295.3 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.264e-05/0.01086, allocations: 3.984 kB / 295.3 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.01087, allocations: 4 kB / 295.3 MB, free: 3.254 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.979e-06/0.01088, allocations: 4.859 kB / 295.3 MB, free: 3.246 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01088, allocations: 0 / 295.3 MB, free: 3.246 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000419/0.0113, allocations: 83.73 kB / 295.4 MB, free: 3.164 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0006901/0.01199, allocations: 235.3 kB / 295.6 MB, free: 2.945 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.01212, allocations: 115.7 kB / 295.8 MB, free: 2.805 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.01212, allocations: 0 / 295.8 MB, free: 2.805 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.957e-05/0.01217, allocations: 97.88 kB / 295.8 MB, free: 2.688 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.635e-05/0.01224, allocations: 7.938 kB / 295.9 MB, free: 2.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002181/0.01245, allocations: 110.2 kB / 296 MB, free: 2.539 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.221e-05/0.0125, allocations: 55.47 kB / 296 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.155e-05/0.01251, allocations: 4 kB / 296 MB, free: 2.461 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.01255, allocations: 51.38 kB / 296.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01255, allocations: 4 kB / 296.1 MB, free: 2.406 MB / 282.7 MB Notification: Performance of Templates: time 0.006141/0.01869, allocations: 2.316 MB / 298.4 MB, free: 92 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.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.0330074904486537]