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.001264/0.001264, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001236, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2352/0.2352, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 79.86 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4653/0.4674, allocations: 62.43 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.002142/0.4696, allocations: 0.4901 MB / 0.5314 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002906/0.4725, allocations: 1.609 MB / 0.533 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.441e-05/0.4725, allocations: 0 / 0.533 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.231e-05/0.4726, allocations: 0 / 0.533 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.688e-06/0.4726, allocations: 0 / 0.533 GB, free: 11.94 MB / 398.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.001394/0.474, allocations: 265 kB / 0.5333 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.248e-05/0.4741, allocations: 5.375 kB / 0.5333 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.897e-05/0.4742, allocations: 5.375 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.954e-05/0.4742, allocations: 1.375 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.867e-05/0.4742, allocations: 3.984 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.103e-06/0.4743, allocations: 1.375 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.4753, allocations: 0.4936 MB / 0.5338 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.4753, allocations: 1.375 kB / 0.5338 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.488e-05/0.4754, allocations: 0 / 0.5338 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006762/0.476, allocations: 305.1 kB / 0.5341 GB, free: 11.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4761, allocations: 4 kB / 0.5341 GB, free: 11.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.4761, allocations: 5.141 kB / 0.5341 GB, free: 11.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.4761, allocations: 0 / 0.5341 GB, free: 11.38 MB / 398.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.0005473/0.4766, allocations: 371.8 kB / 0.5344 GB, free: 10.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.4767, allocations: 9.344 kB / 0.5344 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.582e-05/0.4767, allocations: 1.969 kB / 0.5344 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.4769, allocations: 160.4 kB / 0.5346 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.4769, allocations: 1.312 kB / 0.5346 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.4769, allocations: 5.047 kB / 0.5346 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.4771, allocations: 44.59 kB / 0.5346 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4771, allocations: 0 / 0.5346 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.4771, allocations: 0.8438 kB / 0.5346 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4771, allocations: 0 / 0.5346 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.359e-05/0.4771, allocations: 2.219 kB / 0.5346 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/0.4773, allocations: 146.8 kB / 0.5348 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.109e-05/0.4774, allocations: 16.33 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.881e-05/0.4774, allocations: 9.828 kB / 0.5348 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.4774, allocations: 8.859 kB / 0.5348 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.58e-05/0.4775, allocations: 61.42 kB / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.4775, allocations: 0 / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002344/0.4777, allocations: 67.64 kB / 0.5349 GB, free: 10.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.4778, allocations: 77.11 kB / 0.535 GB, free: 10.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.408e-05/0.4779, allocations: 89.86 kB / 0.5351 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.4779, allocations: 27.02 kB / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.085e-05/0.4779, allocations: 88.25 kB / 0.5352 GB, free: 10.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.478, allocations: 5.125 kB / 0.5352 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.478, allocations: 14.88 kB / 0.5352 GB, free: 10.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.4781, allocations: 312.3 kB / 0.5355 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.431e-05/0.4782, allocations: 1.375 kB / 0.5355 GB, free: 9.695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-06/0.4782, allocations: 3.938 kB / 0.5355 GB, free: 9.691 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.479e-05/0.4782, allocations: 64.17 kB / 0.5356 GB, free: 9.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.4782, allocations: 4.062 kB / 0.5356 GB, free: 9.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.775e-05/0.4783, allocations: 67.02 kB / 0.5357 GB, free: 9.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.4784, allocations: 34.42 kB / 0.5357 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.4784, allocations: 0 / 0.5357 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4784, allocations: 1.062 kB / 0.5357 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.663e-06/0.4784, allocations: 0 / 0.5357 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.4784, allocations: 1.094 kB / 0.5357 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/0.4785, allocations: 4 kB / 0.5357 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.4785, allocations: 1.094 kB / 0.5357 GB, free: 9.504 MB / 398.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.0001316/0.4786, allocations: 149.7 kB / 0.5358 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.376e-05/0.4787, allocations: 9.156 kB / 0.5359 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.242e-05/0.4787, allocations: 3.125 kB / 0.5359 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4787, allocations: 1.406 kB / 0.5359 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.4787, allocations: 4 kB / 0.5359 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.4787, allocations: 0 / 0.5359 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.4788, allocations: 143 kB / 0.536 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.4788, allocations: 1.312 kB / 0.536 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.826e-06/0.4788, allocations: 3.984 kB / 0.536 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.4789, allocations: 3.938 kB / 0.536 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.4789, allocations: 5.219 kB / 0.536 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4789, allocations: 0 / 0.536 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4789, allocations: 1.156 kB / 0.536 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.479, allocations: 85.81 kB / 0.5361 GB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.4791, allocations: 81.09 kB / 0.5362 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.4791, allocations: 5 kB / 0.5362 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.081e-05/0.4791, allocations: 1.094 kB / 0.5362 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.4791, allocations: 1.25 kB / 0.5362 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.4791, allocations: 4 kB / 0.5362 GB, free: 8.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.472e-05/0.4792, allocations: 76.41 kB / 0.5363 GB, free: 8.855 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4792, allocations: 3.938 kB / 0.5363 GB, free: 8.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004169/0.4796, allocations: 67.61 kB / 0.5363 GB, free: 8.832 MB / 398.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.0005776/0.4802, allocations: 193.8 kB / 0.5365 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001434/0.4803, allocations: 57.09 kB / 0.5366 GB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4803, allocations: 0 / 0.5366 GB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.725e-05/0.4804, allocations: 62.73 kB / 0.5366 GB, free: 8.559 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.4805, allocations: 8.625 kB / 0.5366 GB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002403/0.4808, allocations: 76.11 kB / 0.5367 GB, free: 8.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.4811, allocations: 0.6703 MB / 0.5374 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.717e-06/0.4811, allocations: 0 / 0.5374 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.742e-05/0.4812, allocations: 8.781 kB / 0.5374 GB, free: 7.758 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4812, allocations: 0 / 0.5374 GB, free: 7.758 MB / 398.1 MB Notification: Performance of Templates: time 0.00503/0.4862, allocations: 1.288 MB / 0.5386 GB, free: 7.094 MB / 398.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches