Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.001637/0.001637, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001396/0.001396, allocations: 168.7 kB / 24.91 MB, free: 9.199 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.9604/0.9604, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.2811/0.2811, allocations: 32.81 MB / 294.6 MB, free: 1.238 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.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.42e-07/9.42e-07, allocations: 3.938 kB / 323.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.557e-05/1.651e-05, allocations: 3.188 kB / 323.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0009781/0.0009946, allocations: 0.4933 MB / 323.7 MB, free: 9.254 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.002612, allocations: 1.611 MB / 325.3 MB, free: 7.621 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.457e-05/0.002627, allocations: 4 kB / 325.3 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.318e-05/0.00264, allocations: 0 / 325.3 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.002645, allocations: 0 / 325.3 MB, free: 7.617 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006736/0.003319, allocations: 295 kB / 325.6 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.785e-05/0.003357, allocations: 4.625 kB / 325.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.001e-05/0.003387, allocations: 4 kB / 325.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.319e-05/0.00341, allocations: 0 / 325.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.392e-05/0.003424, allocations: 0 / 325.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.6e-06/0.003429, allocations: 0 / 325.6 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004172/0.003847, allocations: 411 kB / 326 MB, free: 6.918 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.05e-05/0.003857, allocations: 3.984 kB / 326 MB, free: 6.914 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.237e-05/0.00387, allocations: 4 kB / 326 MB, free: 6.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002904/0.00416, allocations: 319.1 kB / 326.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.373e-06/0.004161, allocations: 0 / 326.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.004162, allocations: 0 / 326.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.695e-06/0.004165, allocations: 0 / 326.3 MB, free: 6.598 MB / 298.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.0002154/0.00438, allocations: 274.7 kB / 326.6 MB, free: 6.301 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.004409, allocations: 8.031 kB / 326.6 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.915e-05/0.004429, allocations: 0.9375 kB / 326.6 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.048e-05/0.004479, allocations: 113.8 kB / 326.7 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.004487, allocations: 384 / 326.7 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.825e-06/0.004495, allocations: 384 / 326.7 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.765e-05/0.004553, allocations: 59.97 kB / 326.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-06/0.004558, allocations: 192 / 326.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.004563, allocations: 384 / 326.8 MB, free: 6.086 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.004568, allocations: 3.938 kB / 326.8 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.356e-05/0.004582, allocations: 29.64 kB / 326.8 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.053e-05/0.004632, allocations: 57.05 kB / 326.9 MB, free: 5.977 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.714e-05/0.004669, allocations: 48.3 kB / 326.9 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.431e-05/0.004684, allocations: 30.56 kB / 326.9 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-06/0.004687, allocations: 0 / 326.9 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.004718, allocations: 68.33 kB / 327 MB, free: 5.793 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.81e-07/0.004719, allocations: 4 kB / 327 MB, free: 5.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.795e-05/0.004817, allocations: 118.7 kB / 327.1 MB, free: 5.648 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.00485, allocations: 77.11 kB / 327.2 MB, free: 5.555 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.899e-05/0.004879, allocations: 93.86 kB / 327.3 MB, free: 5.453 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.313e-06/0.004887, allocations: 25.7 kB / 327.3 MB, free: 5.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.073e-05/0.004907, allocations: 80.14 kB / 327.4 MB, free: 5.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.004923, allocations: 5.141 kB / 327.4 MB, free: 5.336 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.996e-05/0.004943, allocations: 13.72 kB / 327.4 MB, free: 5.316 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.002e-05/0.005023, allocations: 314.8 kB / 327.7 MB, free: 5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.27e-05/0.005036, allocations: 25.7 kB / 327.7 MB, free: 4.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.541e-05/0.005051, allocations: 37.81 kB / 327.8 MB, free: 4.926 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.709e-05/0.005088, allocations: 60.27 kB / 327.8 MB, free: 4.852 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.00509, allocations: 4 kB / 327.8 MB, free: 4.848 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.067e-05/0.00514, allocations: 85.05 kB / 327.9 MB, free: 4.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.005165, allocations: 33.69 kB / 328 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.005169, allocations: 3.984 kB / 328 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.00518, allocations: 4 kB / 328 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.585e-06/0.005182, allocations: 0 / 328 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.005185, allocations: 0 / 328 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.376e-06/0.005193, allocations: 4.094 kB / 328 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.005199, allocations: 3.938 kB / 328 MB, free: 4.691 MB / 298.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 5.44e-05/0.005253, allocations: 139.5 kB / 328.1 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-06/0.005257, allocations: 0 / 328.1 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.933e-06/0.005264, allocations: 3 kB / 328.1 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.005265, allocations: 0 / 328.1 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.005269, allocations: 7.984 kB / 328.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.005272, allocations: 0 / 328.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.557e-05/0.005318, allocations: 61.84 kB / 328.2 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-07/0.005318, allocations: 0 / 328.2 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-07/0.005319, allocations: 0 / 328.2 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.11e-07/0.005319, allocations: 4 kB / 328.2 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-06/0.005324, allocations: 4 kB / 328.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.005325, allocations: 0 / 328.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.005326, allocations: 0 / 328.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.221e-05/0.005388, allocations: 116.4 kB / 328.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.258e-06/0.005392, allocations: 4.344 kB / 328.3 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.468e-06/0.005402, allocations: 4 kB / 328.3 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.928e-06/0.005406, allocations: 3.938 kB / 328.3 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-06/0.005414, allocations: 0 / 328.3 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-06/0.005416, allocations: 0 / 328.3 MB, free: 4.289 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.167e-06/0.005425, allocations: 16.88 kB / 328.3 MB, free: 4.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005425, allocations: 0 / 328.3 MB, free: 4.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001491/0.005574, allocations: 55.81 kB / 328.4 MB, free: 4.215 MB / 298.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.0003268/0.005901, allocations: 183.4 kB / 328.6 MB, free: 4.043 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.006002, allocations: 123.6 kB / 328.7 MB, free: 3.895 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.006004, allocations: 4 kB / 328.7 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.32e-05/0.006038, allocations: 89.95 kB / 328.8 MB, free: 3.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.427e-05/0.006082, allocations: 7.938 kB / 328.8 MB, free: 3.773 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001486/0.006231, allocations: 109.3 kB / 328.9 MB, free: 3.633 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.576e-05/0.006256, allocations: 59.47 kB / 329 MB, free: 3.555 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.418e-06/0.006261, allocations: 0 / 329 MB, free: 3.555 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.28e-05/0.006293, allocations: 51.38 kB / 329 MB, free: 3.504 MB / 298.7 MB Notification: Performance of SimCode: time 3.9e-07/0.006294, allocations: 0 / 329 MB, free: 3.504 MB / 298.7 MB Notification: Performance of Templates: time 0.002558/0.008852, allocations: 1.493 MB / 330.5 MB, free: 2.016 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.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: 2.955185364931822]