Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002115/0.002115, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004519/0.004519, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.932/2.932, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5072/0.5072, allocations: 46.1 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002997/0.002997, allocations: 75.88 kB / 482 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7285/0.7315, allocations: 62.44 MB / 0.5316 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.004576/0.7362, allocations: 0.4941 MB / 0.5321 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01553/0.7518, allocations: 4.872 MB / 0.5369 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.247e-05/0.7519, allocations: 0 / 0.5369 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.7519, allocations: 0 / 0.5369 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.118e-05/0.752, allocations: 0 / 0.5369 GB, free: 9.73 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.01716/0.7692, allocations: 2.935 MB / 0.5397 GB, free: 8.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.667e-05/0.7693, allocations: 5.438 kB / 0.5398 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.939e-05/0.7694, allocations: 1.469 kB / 0.5398 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.75e-05/0.7694, allocations: 3.984 kB / 0.5398 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.695e-05/0.7695, allocations: 5.438 kB / 0.5398 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.7695, allocations: 0 / 0.5398 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0485/0.818, allocations: 18.81 MB / 0.5581 GB, free: 6.766 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.8181, allocations: 0 / 0.5581 GB, free: 6.766 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.743e-05/0.8182, allocations: 7.984 kB / 0.5581 GB, free: 6.758 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06588/0.8841, allocations: 27.48 MB / 0.585 GB, free: 11.24 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/0.8842, allocations: 0 / 0.585 GB, free: 11.24 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.8842, allocations: 0 / 0.585 GB, free: 11.24 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.8842, allocations: 0 / 0.585 GB, free: 11.24 MB / 446.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.01878/0.903, allocations: 0.6495 MB / 0.5856 GB, free: 10.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.713e-05/0.9031, allocations: 8.031 kB / 0.5856 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.644e-05/0.9032, allocations: 0.9375 kB / 0.5856 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.9035, allocations: 169 kB / 0.5858 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.9035, allocations: 0 / 0.5858 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.9035, allocations: 0 / 0.5858 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.9037, allocations: 37.69 kB / 0.5858 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.9038, allocations: 0 / 0.5858 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.9038, allocations: 3.938 kB / 0.5858 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.9038, allocations: 0 / 0.5858 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.376e-05/0.9039, allocations: 8 kB / 0.5858 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002797/0.9042, allocations: 149.6 kB / 0.586 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.017e-05/0.9043, allocations: 18.61 kB / 0.586 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.725e-05/0.9043, allocations: 12.83 kB / 0.586 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.9044, allocations: 0 / 0.586 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.752e-05/0.9045, allocations: 64.33 kB / 0.5861 GB, free: 9.953 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 2.154e-06/0.9045, allocations: 4 kB / 0.5861 GB, free: 9.949 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003248/0.9048, allocations: 63.34 kB / 0.5861 GB, free: 9.875 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.9049, allocations: 77.11 kB / 0.5862 GB, free: 9.781 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.163e-05/0.905, allocations: 93.84 kB / 0.5863 GB, free: 9.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.9051, allocations: 25.7 kB / 0.5863 GB, free: 9.648 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.9052, allocations: 84.08 kB / 0.5864 GB, free: 9.562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.9052, allocations: 7.906 kB / 0.5864 GB, free: 9.555 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/0.9053, allocations: 13.72 kB / 0.5864 GB, free: 9.535 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002193/0.9055, allocations: 318.9 kB / 0.5867 GB, free: 9.215 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.088e-05/0.9056, allocations: 0 / 0.5867 GB, free: 9.215 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.78e-05/0.9056, allocations: 4 kB / 0.5867 GB, free: 9.211 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.9057, allocations: 56.27 kB / 0.5868 GB, free: 9.141 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.9057, allocations: 0 / 0.5868 GB, free: 9.141 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001608/0.9059, allocations: 71.33 kB / 0.5868 GB, free: 9.059 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.682e-05/0.906, allocations: 33.7 kB / 0.5869 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.906, allocations: 0 / 0.5869 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.9061, allocations: 96 / 0.5869 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.9061, allocations: 4 kB / 0.5869 GB, free: 9.016 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.9061, allocations: 0 / 0.5869 GB, free: 9.016 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.623e-05/0.9061, allocations: 0 / 0.5869 GB, free: 9.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.9062, allocations: 3.938 kB / 0.5869 GB, free: 9.012 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002042/0.9064, allocations: 143.5 kB / 0.587 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.427e-05/0.9064, allocations: 0 / 0.587 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.9065, allocations: 3.125 kB / 0.587 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.9065, allocations: 0 / 0.587 GB, free: 8.855 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.9065, allocations: 4 kB / 0.587 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.9065, allocations: 4 kB / 0.587 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002179/0.9067, allocations: 153.6 kB / 0.5872 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.169e-05/0.9108, allocations: 7.922 kB / 0.5872 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.025e-06/0.9109, allocations: 0 / 0.5872 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.9109, allocations: 0 / 0.5872 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.9109, allocations: 4 kB / 0.5872 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.9109, allocations: 0 / 0.5872 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.911, allocations: 0 / 0.5872 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003195/0.9113, allocations: 98.7 kB / 0.5873 GB, free: 8.516 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.9114, allocations: 81.11 kB / 0.5874 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.9114, allocations: 0 / 0.5874 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.268e-05/0.9114, allocations: 0 / 0.5874 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.826e-05/0.9115, allocations: 0 / 0.5874 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.9115, allocations: 4 kB / 0.5874 GB, free: 8.414 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.184e-05/0.9116, allocations: 83.22 kB / 0.5874 GB, free: 8.332 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9116, allocations: 0 / 0.5874 GB, free: 8.332 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.02995/0.9416, allocations: 3.777 MB / 0.5911 GB, free: 4.555 MB / 446.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 (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.04493/0.9866, allocations: 0.9664 MB / 0.5921 GB, free: 3.594 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.9877, allocations: 63.34 kB / 0.5921 GB, free: 3.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.9878, allocations: 0 / 0.5921 GB, free: 3.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.623e-05/0.9878, allocations: 59.39 kB / 0.5922 GB, free: 3.449 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.9881, allocations: 4 kB / 0.5922 GB, free: 3.445 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003119/0.9884, allocations: 110.9 kB / 0.5923 GB, free: 3.305 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.9888, allocations: 0.669 MB / 0.593 GB, free: 2.609 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.853e-05/0.9888, allocations: 15.38 kB / 0.593 GB, free: 2.594 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.9888, allocations: 0 / 0.593 GB, free: 2.594 MB / 446.1 MB Notification: Performance of Templates: time 0.1909/1.18, allocations: 64.88 MB / 0.6563 GB, free: 1.605 MB / 0.4981 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches