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.00138/0.00138, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00177/0.00177, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.9 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.2185/0.2185, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001348, allocations: 67.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3815, allocations: 62.44 MB / 0.531 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001631/0.3832, allocations: 0.4897 MB / 0.5314 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.3854, allocations: 1.609 MB / 0.533 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.665e-05/0.3854, allocations: 0 / 0.533 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.273e-05/0.3854, allocations: 0 / 0.533 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.042e-06/0.3855, allocations: 0 / 0.533 GB, free: 12.16 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.0008271/0.3863, allocations: 268.3 kB / 0.5333 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.66e-05/0.3863, allocations: 1.375 kB / 0.5333 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.843e-05/0.3864, allocations: 9.359 kB / 0.5333 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.809e-05/0.3864, allocations: 5.359 kB / 0.5333 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.813e-05/0.3864, allocations: 0 / 0.5333 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.3865, allocations: 1.375 kB / 0.5333 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006327/0.3871, allocations: 0.4884 MB / 0.5338 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-06/0.3871, allocations: 5.375 kB / 0.5338 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.871e-05/0.3871, allocations: 0 / 0.5338 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.3876, allocations: 317.2 kB / 0.5341 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3876, allocations: 0 / 0.5341 GB, free: 11.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3876, allocations: 0 / 0.5341 GB, free: 11.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3876, allocations: 1.281 kB / 0.5341 GB, free: 11.6 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.0003642/0.388, allocations: 368 kB / 0.5344 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.388, allocations: 9.281 kB / 0.5344 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.388, allocations: 0.9375 kB / 0.5344 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.3882, allocations: 161.8 kB / 0.5346 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.3882, allocations: 4.375 kB / 0.5346 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.3882, allocations: 9.453 kB / 0.5346 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.278e-05/0.3883, allocations: 40.31 kB / 0.5346 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.3883, allocations: 0 / 0.5346 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.3883, allocations: 1.469 kB / 0.5346 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3884, allocations: 0 / 0.5346 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.788e-05/0.3884, allocations: 1.219 kB / 0.5346 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.3885, allocations: 142.9 kB / 0.5348 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.778e-05/0.3886, allocations: 23.94 kB / 0.5348 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.535e-05/0.3886, allocations: 10.89 kB / 0.5348 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.3886, allocations: 0 / 0.5348 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.3887, allocations: 65.3 kB / 0.5349 GB, free: 10.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3887, allocations: 0 / 0.5349 GB, free: 10.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.3888, allocations: 60.09 kB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.3889, allocations: 81.09 kB / 0.535 GB, free: 10.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.637e-05/0.3889, allocations: 97.92 kB / 0.5351 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.3889, allocations: 26.86 kB / 0.5351 GB, free: 10.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.193e-05/0.389, allocations: 80.14 kB / 0.5352 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.389, allocations: 9.062 kB / 0.5352 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.389, allocations: 11.78 kB / 0.5352 GB, free: 10.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3891, allocations: 315.8 kB / 0.5355 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.067e-05/0.3892, allocations: 3.938 kB / 0.5355 GB, free: 9.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.3892, allocations: 1.094 kB / 0.5355 GB, free: 9.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.25e-05/0.3892, allocations: 63.77 kB / 0.5356 GB, free: 9.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3892, allocations: 5.062 kB / 0.5356 GB, free: 9.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.357e-05/0.3893, allocations: 66.11 kB / 0.5357 GB, free: 9.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.3893, allocations: 35.27 kB / 0.5357 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3894, allocations: 0 / 0.5357 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.3894, allocations: 1.25 kB / 0.5357 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3894, allocations: 0 / 0.5357 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.3894, allocations: 0 / 0.5357 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.616e-05/0.3894, allocations: 4.969 kB / 0.5357 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.3894, allocations: 5.156 kB / 0.5357 GB, free: 9.727 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 9.53e-05/0.3895, allocations: 145.7 kB / 0.5358 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.3895, allocations: 4.938 kB / 0.5358 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.166e-06/0.3895, allocations: 3.125 kB / 0.5358 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3895, allocations: 0 / 0.5358 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3896, allocations: 1.438 kB / 0.5359 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.3896, allocations: 0 / 0.5359 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.123e-05/0.3896, allocations: 150.7 kB / 0.536 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3897, allocations: 1.062 kB / 0.536 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3897, allocations: 4 kB / 0.536 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.3897, allocations: 5.125 kB / 0.536 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.3897, allocations: 0 / 0.536 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3897, allocations: 1.062 kB / 0.536 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3897, allocations: 0 / 0.536 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.566e-05/0.3898, allocations: 90.39 kB / 0.5361 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.86e-05/0.3898, allocations: 77.11 kB / 0.5362 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.3898, allocations: 5.094 kB / 0.5362 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.3899, allocations: 5.188 kB / 0.5362 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.21e-05/0.3899, allocations: 0 / 0.5362 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.3899, allocations: 1.281 kB / 0.5362 GB, free: 9.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.16e-05/0.3899, allocations: 79.22 kB / 0.5363 GB, free: 9.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3899, allocations: 0 / 0.5363 GB, free: 9.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.3902, allocations: 63.7 kB / 0.5363 GB, free: 9.066 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.0003983/0.3906, allocations: 198.2 kB / 0.5365 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001014/0.3907, allocations: 60.86 kB / 0.5366 GB, free: 8.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3908, allocations: 4.062 kB / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.381e-05/0.3908, allocations: 54.94 kB / 0.5366 GB, free: 8.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.3909, allocations: 2.312 kB / 0.5366 GB, free: 8.789 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001709/0.3911, allocations: 79.92 kB / 0.5367 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.3913, allocations: 0.674 MB / 0.5374 GB, free: 7.992 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.302e-06/0.3914, allocations: 1.156 kB / 0.5374 GB, free: 7.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.024e-05/0.3914, allocations: 7.438 kB / 0.5374 GB, free: 7.984 MB / 398.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3914, allocations: 1.156 kB / 0.5374 GB, free: 7.984 MB / 398.1 MB Notification: Performance of Templates: time 0.003795/0.3952, allocations: 1.291 MB / 0.5386 GB, free: 7.316 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