Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001145/0.001145, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 159.4 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9933/0.9933, allocations: 177 MB / 205.9 MB, free: 4.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1602/0.1602, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.063e-05/3.273e-05, allocations: 4.734 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001416/0.001449, allocations: 0.496 MB / 380.5 MB, free: 22.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.003287, allocations: 1.592 MB / 382.1 MB, free: 20.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.003315, allocations: 0 / 382.1 MB, free: 20.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.406e-05/0.003339, allocations: 0 / 382.1 MB, free: 20.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.556e-06/0.003348, allocations: 0 / 382.1 MB, free: 20.66 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0009537/0.004302, allocations: 299.1 kB / 382.4 MB, free: 20.37 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 6.139e-05/0.004363, allocations: 0 / 382.4 MB, free: 20.37 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.323e-05/0.004416, allocations: 11.98 kB / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.062e-05/0.004447, allocations: 0 / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.924e-05/0.004476, allocations: 4 kB / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.004487, allocations: 0 / 382.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005041/0.004991, allocations: 429.9 kB / 382.8 MB, free: 19.94 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.215e-05/0.005003, allocations: 4 kB / 382.8 MB, free: 19.93 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.96e-05/0.005022, allocations: 0 / 382.8 MB, free: 19.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.005325, allocations: 315.2 kB / 383.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.005329, allocations: 0 / 383.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.005331, allocations: 0 / 383.1 MB, free: 19.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.005338, allocations: 0 / 383.1 MB, free: 19.62 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003356/0.005674, allocations: 397.7 kB / 383.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.005719, allocations: 12.03 kB / 383.5 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.594e-05/0.005755, allocations: 4.938 kB / 383.5 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.955e-05/0.005815, allocations: 104.6 kB / 383.6 MB, free: 19.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.005831, allocations: 384 / 383.6 MB, free: 19.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-06/0.005838, allocations: 12.31 kB / 383.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.553e-05/0.005923, allocations: 63.88 kB / 383.7 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.005934, allocations: 192 / 383.7 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.005941, allocations: 4.375 kB / 383.7 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.005949, allocations: 3.938 kB / 383.7 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.594e-05/0.005965, allocations: 25.7 kB / 383.7 MB, free: 18.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.679e-05/0.006042, allocations: 93.27 kB / 383.8 MB, free: 18.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.652e-05/0.006089, allocations: 48.77 kB / 383.9 MB, free: 18.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.006104, allocations: 45.41 kB / 383.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-06/0.006108, allocations: 4 kB / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.006142, allocations: 63.09 kB / 384 MB, free: 18.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.11e-07/0.006142, allocations: 0 / 384 MB, free: 18.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001695/0.006312, allocations: 110.8 kB / 384.1 MB, free: 18.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.006346, allocations: 85.09 kB / 384.2 MB, free: 18.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.054e-05/0.006377, allocations: 142.2 kB / 384.3 MB, free: 18.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.053e-06/0.006384, allocations: 25.7 kB / 384.3 MB, free: 18.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.564e-05/0.006399, allocations: 126.9 kB / 384.5 MB, free: 18.06 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.006421, allocations: 0 / 384.5 MB, free: 18.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.006448, allocations: 19.38 kB / 384.5 MB, free: 18.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.331e-05/0.006501, allocations: 0.4885 MB / 385 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.351e-05/0.006515, allocations: 29.64 kB / 385 MB, free: 17.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.899e-06/0.006524, allocations: 29.7 kB / 385 MB, free: 17.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.004e-05/0.006565, allocations: 67.08 kB / 385.1 MB, free: 17.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.006567, allocations: 4 kB / 385.1 MB, free: 17.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.362e-05/0.00662, allocations: 81.11 kB / 385.2 MB, free: 17.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.006651, allocations: 33.7 kB / 385.2 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.006657, allocations: 0 / 385.2 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.006669, allocations: 0 / 385.2 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.00667, allocations: 96 / 385.2 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.006674, allocations: 7.984 kB / 385.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.525e-05/0.006689, allocations: 3.938 kB / 385.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.006699, allocations: 7.938 kB / 385.2 MB, free: 17.22 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: 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.836e-05/0.006757, allocations: 182.3 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-06/0.006763, allocations: 4.344 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.171e-05/0.006775, allocations: 3 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.006777, allocations: 0 / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.006779, allocations: 0 / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.006784, allocations: 3.938 kB / 385.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.794e-05/0.006831, allocations: 105.2 kB / 385.5 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.51e-07/0.006832, allocations: 4 kB / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.006832, allocations: 0 / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.11e-07/0.006833, allocations: 0 / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-06/0.006838, allocations: 4 kB / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-07/0.006838, allocations: 0 / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.006839, allocations: 0 / 385.5 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.226e-05/0.006912, allocations: 135.7 kB / 385.7 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.27e-06/0.006917, allocations: 0 / 385.7 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.00693, allocations: 3.984 kB / 385.7 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.468e-06/0.006934, allocations: 3.938 kB / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.319e-05/0.006948, allocations: 4.031 kB / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-06/0.006949, allocations: 4 kB / 385.7 MB, free: 16.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.52e-05/0.006965, allocations: 119.2 kB / 385.8 MB, free: 16.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006965, allocations: 0 / 385.8 MB, free: 16.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002076/0.007172, allocations: 71.73 kB / 385.9 MB, free: 16.51 MB / 314.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.0003969/0.007569, allocations: 185.8 kB / 386 MB, free: 16.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001074/0.007676, allocations: 122.5 kB / 386.2 MB, free: 16.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-06/0.007678, allocations: 0 / 386.2 MB, free: 16.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.815e-05/0.007696, allocations: 92.8 kB / 386.2 MB, free: 16.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001019/0.007798, allocations: 6.172 kB / 386.2 MB, free: 16.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001773/0.007975, allocations: 115.5 kB / 386.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.217e-05/0.007997, allocations: 59.16 kB / 386.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.008004, allocations: 0 / 386.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.283e-05/0.008037, allocations: 78.19 kB / 386.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.008037, allocations: 0 / 386.5 MB, free: 15.76 MB / 314.7 MB Notification: Performance of Templates: time 0.003432/0.01147, allocations: 1.511 MB / 388 MB, free: 14.25 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.19528566300869]