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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008409/0.0008408, allocations: 98.16 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009162/0.000916, allocations: 206.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2283/0.2283, allocations: 45.91 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005598/0.0005602, allocations: 8 kB / 417.9 MB, free: 20.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.191, allocations: 63.46 MB / 481.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0009286/0.1919, allocations: 205.2 kB / 481.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003251/0.1952, allocations: 1.537 MB / 483.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.452e-05/0.1953, allocations: 4 kB / 483.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.604e-05/0.1953, allocations: 3.938 kB / 483.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.1953, allocations: 0 / 483.1 MB, free: 3.641 MB / 350.1 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.001041/0.1964, allocations: 226.9 kB / 483.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.205e-05/0.1964, allocations: 7.938 kB / 483.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.271e-05/0.1965, allocations: 0 / 483.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.276e-05/0.1965, allocations: 7.969 kB / 483.4 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.748e-05/0.1966, allocations: 4 kB / 483.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.254e-06/0.1966, allocations: 0 / 483.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008774/0.1975, allocations: 427.2 kB / 483.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.12e-05/0.1975, allocations: 3.984 kB / 483.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.264e-05/0.1976, allocations: 25.7 kB / 483.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004818/0.1981, allocations: 207.7 kB / 484 MB, free: 2.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1981, allocations: 0 / 484 MB, free: 2.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1981, allocations: 3.938 kB / 484 MB, free: 2.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1981, allocations: 4 kB / 484 MB, free: 2.738 MB / 350.1 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.0005524/0.1987, allocations: 373.1 kB / 484.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/0.1988, allocations: 8.031 kB / 484.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.1988, allocations: 0 / 484.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.199, allocations: 163 kB / 484.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.1991, allocations: 0 / 484.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.1991, allocations: 4 kB / 484.6 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001444/0.1992, allocations: 29.69 kB / 484.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1993, allocations: 3.984 kB / 484.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.1993, allocations: 4 kB / 484.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.1993, allocations: 4 kB / 484.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.107e-05/0.1994, allocations: 7.938 kB / 484.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002229/0.1996, allocations: 149.6 kB / 484.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.503e-05/0.1997, allocations: 22.61 kB / 484.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.1997, allocations: 0 / 484.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.649e-05/0.1998, allocations: 60.27 kB / 484.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.472e-06/0.1998, allocations: 0 / 484.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002562/0.2001, allocations: 71.39 kB / 484.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.2002, allocations: 77.11 kB / 485 MB, free: 1.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.66e-05/0.2002, allocations: 89.86 kB / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.2003, allocations: 25.7 kB / 485.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/0.2003, allocations: 84.14 kB / 485.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.2004, allocations: 0 / 485.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.2004, allocations: 0 / 485.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.2006, allocations: 315 kB / 485.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.545e-05/0.2006, allocations: 3.984 kB / 485.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.093e-05/0.2006, allocations: 4 kB / 485.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.129e-05/0.2007, allocations: 29.7 kB / 485.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.2007, allocations: 0 / 485.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001037/0.2008, allocations: 75.14 kB / 485.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.678e-05/0.2009, allocations: 29.7 kB / 485.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2009, allocations: 3.938 kB / 485.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.2009, allocations: 4.078 kB / 485.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.2009, allocations: 4 kB / 485.6 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.066e-06/0.2009, allocations: 0 / 485.6 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.315e-05/0.201, allocations: 4 kB / 485.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-06/0.201, allocations: 0 / 485.6 MB, free: 0.8672 MB / 350.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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000134/0.2011, allocations: 131.5 kB / 485.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.2012, allocations: 11.95 kB / 485.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.285e-05/0.2012, allocations: 3.125 kB / 485.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2012, allocations: 0 / 485.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2012, allocations: 0 / 485.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2012, allocations: 4 kB / 485.8 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001428/0.2014, allocations: 145.7 kB / 485.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2014, allocations: 4 kB / 485.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.2014, allocations: 0 / 485.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.2014, allocations: 3.953 kB / 485.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.2014, allocations: 0 / 485.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.2014, allocations: 0 / 485.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2014, allocations: 0 / 485.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001355/0.2016, allocations: 98.77 kB / 486 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.459e-05/0.2017, allocations: 77.11 kB / 486.1 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.2017, allocations: 3.953 kB / 486.1 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.668e-05/0.2017, allocations: 4 kB / 486.1 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.2017, allocations: 3.984 kB / 486.1 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.2017, allocations: 0 / 486.1 MB, free: 288 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.242e-05/0.2018, allocations: 75.28 kB / 486.2 MB, free: 212 kB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2018, allocations: 0 / 486.2 MB, free: 212 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000518/0.2023, allocations: 67.98 kB / 486.3 MB, free: 144 kB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006375/0.203, allocations: 207.7 kB / 486.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.2031, allocations: 55.41 kB / 486.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.2032, allocations: 0 / 486.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.106e-05/0.2032, allocations: 59.34 kB / 486.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.2034, allocations: 0 / 486.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002177/0.2036, allocations: 78.69 kB / 486.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.2039, allocations: 0.6731 MB / 487.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.644e-06/0.204, allocations: 0 / 487.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.345e-05/0.204, allocations: 11.56 kB / 487.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.204, allocations: 4 kB / 487.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Templates: time 0.005674/0.2097, allocations: 1.253 MB / 488.6 MB, free: 13.72 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches