Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.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.001433/0.001433, 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.001071/0.001071, allocations: 169.1 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 1.057/1.057, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2637/0.2637, allocations: 32.8 MB / 294.6 MB, free: 1.242 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.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3") translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.183e-06/1.183e-06, allocations: 0 / 323.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429e-05/1.547e-05, allocations: 5.578 kB / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001011/0.001027, allocations: 0.4941 MB / 323.7 MB, free: 9.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.002776, allocations: 1.561 MB / 325.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.814e-05/0.002795, allocations: 0 / 325.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.002807, allocations: 0 / 325.3 MB, free: 7.648 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.144e-06/0.002814, allocations: 7.938 kB / 325.3 MB, free: 7.641 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:576:3-610:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices3' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007528/0.003567, allocations: 255.2 kB / 325.5 MB, free: 7.391 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.545e-05/0.003613, allocations: 8.609 kB / 325.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.237e-05/0.003645, allocations: 0 / 325.5 MB, free: 7.383 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.829e-05/0.003673, allocations: 7.984 kB / 325.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.633e-05/0.00369, allocations: 0 / 325.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.492e-06/0.003696, allocations: 0 / 325.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000651/0.004347, allocations: 0.6758 MB / 326.2 MB, free: 6.699 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.004358, allocations: 4 kB / 326.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.659e-05/0.004374, allocations: 3.984 kB / 326.2 MB, free: 6.691 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005911/0.004965, allocations: 0.7525 MB / 327 MB, free: 5.938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.004967, allocations: 0 / 327 MB, free: 5.938 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.004968, allocations: 0 / 327 MB, free: 5.938 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.004971, allocations: 0 / 327 MB, free: 5.938 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.0003132/0.005285, allocations: 262.2 kB / 327.2 MB, free: 5.652 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.005324, allocations: 8.031 kB / 327.2 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.49e-05/0.005349, allocations: 4.938 kB / 327.2 MB, free: 5.641 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.588e-05/0.005405, allocations: 101.8 kB / 327.3 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.868e-06/0.005414, allocations: 384 / 327.3 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.005422, allocations: 4.375 kB / 327.3 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.197e-05/0.005494, allocations: 67.89 kB / 327.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.099e-06/0.0055, allocations: 192 / 327.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-06/0.005505, allocations: 384 / 327.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.005509, allocations: 3.938 kB / 327.4 MB, free: 5.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.462e-05/0.005524, allocations: 29.7 kB / 327.4 MB, free: 5.395 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.774e-05/0.005581, allocations: 53.05 kB / 327.5 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.02e-05/0.005622, allocations: 44.31 kB / 327.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.547e-05/0.005637, allocations: 30.56 kB / 327.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-06/0.005641, allocations: 4.062 kB / 327.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.005673, allocations: 68.19 kB / 327.6 MB, free: 5.145 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.005673, allocations: 0 / 327.6 MB, free: 5.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001011/0.005774, allocations: 110.8 kB / 327.7 MB, free: 5.012 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.005808, allocations: 85.11 kB / 327.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.245e-05/0.005841, allocations: 89.86 kB / 327.9 MB, free: 4.812 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.878e-06/0.00585, allocations: 29.69 kB / 327.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.932e-05/0.00587, allocations: 80.14 kB / 328 MB, free: 4.695 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.005883, allocations: 1.203 kB / 328 MB, free: 4.695 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.005902, allocations: 13.72 kB / 328 MB, free: 4.676 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.864e-05/0.005981, allocations: 318.8 kB / 328.3 MB, free: 4.355 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.005994, allocations: 33.83 kB / 328.4 MB, free: 4.316 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.4e-05/0.006008, allocations: 33.64 kB / 328.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.93e-05/0.006047, allocations: 64.25 kB / 328.5 MB, free: 4.199 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.006049, allocations: 0 / 328.5 MB, free: 4.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.56e-05/0.006094, allocations: 85.09 kB / 328.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.00612, allocations: 33.7 kB / 328.6 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.006125, allocations: 0 / 328.6 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.006135, allocations: 0 / 328.6 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.725e-06/0.006138, allocations: 0 / 328.6 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.006143, allocations: 8.078 kB / 328.6 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.668e-06/0.006153, allocations: 0 / 328.6 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.006159, allocations: 7.922 kB / 328.6 MB, free: 4.043 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 6.144e-05/0.006221, allocations: 139.5 kB / 328.7 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-06/0.006226, allocations: 7.938 kB / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.715e-06/0.006234, allocations: 3 kB / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.006236, allocations: 0 / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.006237, allocations: 0 / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.006239, allocations: 0 / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.344e-05/0.006282, allocations: 61.84 kB / 328.8 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.6e-07/0.006283, allocations: 8 kB / 328.8 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.854e-06/0.006285, allocations: 3.984 kB / 328.8 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.006286, allocations: 0 / 328.8 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.948e-06/0.00629, allocations: 0 / 328.8 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.006291, allocations: 0 / 328.8 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.006291, allocations: 0 / 328.8 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.136e-05/0.006353, allocations: 116.5 kB / 328.9 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-06/0.006357, allocations: 4.281 kB / 328.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.368e-06/0.006366, allocations: 0 / 328.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.208e-06/0.00637, allocations: 3.938 kB / 328.9 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-06/0.006379, allocations: 4 kB / 329 MB, free: 3.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-06/0.00638, allocations: 4.031 kB / 329 MB, free: 3.633 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.045e-06/0.006388, allocations: 8.797 kB / 329 MB, free: 3.621 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006388, allocations: 0 / 329 MB, free: 3.621 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002369/0.006625, allocations: 123.9 kB / 329.1 MB, free: 3.5 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.0004594/0.007084, allocations: 170.3 kB / 329.3 MB, free: 3.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.866e-05/0.007183, allocations: 115.7 kB / 329.4 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.007185, allocations: 0 / 329.4 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.282e-05/0.007218, allocations: 89.97 kB / 329.5 MB, free: 3.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.382e-05/0.007262, allocations: 7.938 kB / 329.5 MB, free: 3.082 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001558/0.007418, allocations: 105.3 kB / 329.6 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.876e-05/0.007447, allocations: 55.34 kB / 329.6 MB, free: 2.871 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.779e-06/0.007451, allocations: 4.125 kB / 329.6 MB, free: 2.867 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.834e-05/0.00748, allocations: 51.38 kB / 329.7 MB, free: 2.816 MB / 298.7 MB Notification: Performance of SimCode: time 6.02e-07/0.00748, allocations: 0 / 329.7 MB, free: 2.816 MB / 298.7 MB Notification: Performance of Templates: time 0.004972/0.01245, allocations: 4.068 MB / 333.7 MB, free: 14.74 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices3/TestMatrices3.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.267514776904136]