Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 242.4 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2034/0.2034, allocations: 44.17 MB / 336.8 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 65.16 kB / 408.4 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1209, allocations: 60.82 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001674/0.1226, allocations: 0.545 MB / 469.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007295/0.1299, allocations: 5.126 MB / 474.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.13, allocations: 4 kB / 474.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.197e-05/0.13, allocations: 4 kB / 474.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.771e-06/0.1301, allocations: 0 / 474.9 MB, free: 9.125 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.006752/0.1369, allocations: 2.574 MB / 477.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.64e-05/0.1369, allocations: 3.938 kB / 477.4 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.744e-05/0.137, allocations: 3.984 kB / 477.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.784e-05/0.137, allocations: 4 kB / 477.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.716e-05/0.137, allocations: 4 kB / 477.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.041e-06/0.137, allocations: 0 / 477.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02846/0.1655, allocations: 18.93 MB / 496.4 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.1656, allocations: 3.984 kB / 496.4 MB, free: 3.602 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.899e-05/0.1656, allocations: 0 / 496.4 MB, free: 3.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.236/0.4016, allocations: 20.34 MB / 0.5046 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.4016, allocations: 0 / 0.5046 GB, free: 18.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4016, allocations: 0 / 0.5046 GB, free: 18.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.4016, allocations: 1.188 kB / 0.5046 GB, free: 18.5 MB / 382.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.007799/0.4094, allocations: 0.652 MB / 0.5052 GB, free: 18.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.4095, allocations: 11.8 kB / 0.5053 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.359e-05/0.4095, allocations: 4.188 kB / 0.5053 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.957e-05/0.4096, allocations: 166 kB / 0.5054 GB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.4096, allocations: 1.188 kB / 0.5054 GB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.4096, allocations: 1.406 kB / 0.5054 GB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.848e-05/0.4097, allocations: 30.8 kB / 0.5054 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.4098, allocations: 0 / 0.5054 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.4098, allocations: 2.094 kB / 0.5054 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.4098, allocations: 0.6875 kB / 0.5055 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.4098, allocations: 8.25 kB / 0.5055 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.938e-05/0.4099, allocations: 155.3 kB / 0.5056 GB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.215e-05/0.41, allocations: 17.94 kB / 0.5056 GB, free: 17.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.278e-05/0.41, allocations: 8.5 kB / 0.5056 GB, free: 17.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-06/0.41, allocations: 0 / 0.5056 GB, free: 17.56 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.024e-05/0.4101, allocations: 58.72 kB / 0.5057 GB, free: 17.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.263e-06/0.4101, allocations: 2.688 kB / 0.5057 GB, free: 17.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001806/0.4103, allocations: 66.47 kB / 0.5058 GB, free: 17.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.4103, allocations: 81.47 kB / 0.5058 GB, free: 17.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.43e-05/0.4103, allocations: 94.2 kB / 0.5059 GB, free: 17.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-06/0.4104, allocations: 26.27 kB / 0.5059 GB, free: 17.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.346e-05/0.4104, allocations: 80.14 kB / 0.506 GB, free: 17.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.4104, allocations: 5.344 kB / 0.506 GB, free: 17.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.4104, allocations: 12.7 kB / 0.506 GB, free: 17.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.323e-05/0.4105, allocations: 315.7 kB / 0.5063 GB, free: 16.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.103e-05/0.4105, allocations: 2 kB / 0.5063 GB, free: 16.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.482e-06/0.4105, allocations: 3.188 kB / 0.5063 GB, free: 16.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.779e-05/0.4106, allocations: 67.69 kB / 0.5064 GB, free: 16.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4106, allocations: 0 / 0.5064 GB, free: 16.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.987e-05/0.4107, allocations: 64.52 kB / 0.5065 GB, free: 16.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.4107, allocations: 34.14 kB / 0.5065 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.4107, allocations: 1.312 kB / 0.5065 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.4107, allocations: 0 / 0.5065 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.4107, allocations: 2.375 kB / 0.5065 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.4108, allocations: 1.469 kB / 0.5065 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.929e-05/0.4108, allocations: 0.7188 kB / 0.5065 GB, free: 16.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.4108, allocations: 0.9062 kB / 0.5065 GB, free: 16.63 MB / 382.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 6.298e-05/0.4109, allocations: 142.2 kB / 0.5066 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-06/0.4109, allocations: 0.5938 kB / 0.5066 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.072e-05/0.4109, allocations: 6.016 kB / 0.5067 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4109, allocations: 1.672 kB / 0.5067 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.4109, allocations: 0 / 0.5067 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4109, allocations: 1.75 kB / 0.5067 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.907e-05/0.411, allocations: 151.1 kB / 0.5068 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.411, allocations: 3.062 kB / 0.5068 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.283e-06/0.411, allocations: 0.7812 kB / 0.5068 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.411, allocations: 0 / 0.5068 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.411, allocations: 4.656 kB / 0.5068 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.411, allocations: 0 / 0.5068 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4111, allocations: 5.062 kB / 0.5068 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.997e-05/0.4111, allocations: 90.89 kB / 0.5069 GB, free: 16.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.4112, allocations: 78.72 kB / 0.507 GB, free: 16.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.4112, allocations: 4.422 kB / 0.507 GB, free: 16.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.32e-05/0.4112, allocations: 1.031 kB / 0.507 GB, free: 16.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.15e-05/0.4112, allocations: 7.078 kB / 0.507 GB, free: 16.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.4112, allocations: 3.312 kB / 0.507 GB, free: 16.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.495e-05/0.4113, allocations: 83.47 kB / 0.5071 GB, free: 16.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.4113, allocations: 0 / 0.5071 GB, free: 16.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01234/0.4236, allocations: 3.779 MB / 0.5108 GB, free: 15.92 MB / 382.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.0212/0.4449, allocations: 0.9736 MB / 0.5117 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.445, allocations: 57.38 kB / 0.5118 GB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.445, allocations: 0 / 0.5118 GB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.264e-05/0.4451, allocations: 64.7 kB / 0.5118 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.4452, allocations: 5.5 kB / 0.5118 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001833/0.4454, allocations: 104.9 kB / 0.5119 GB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.869e-05/0.4455, allocations: 0.6755 MB / 0.5126 GB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.4455, allocations: 11 kB / 0.5126 GB, free: 14.75 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4455, allocations: 0 / 0.5126 GB, free: 14.75 MB / 382.1 MB Notification: Performance of Templates: time 0.08824/0.5338, allocations: 64.88 MB / 0.576 GB, free: 12.82 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches