Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001114, allocations: 203.6 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.6 MB / 243.4 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008657/0.0008658, allocations: 103 kB / 295.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3603/0.3603, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003604, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.3874, allocations: 62.96 MB / 0.5159 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0008101/0.3882, allocations: 219.5 kB / 0.5161 GB, free: 37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.3917, allocations: 1.542 MB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.369e-05/0.3917, allocations: 0 / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.955e-05/0.3918, allocations: 0 / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.357e-06/0.3918, allocations: 0 / 0.5176 GB, free: 35.89 MB / 378.7 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.001392/0.3932, allocations: 248.4 kB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.884e-05/0.3933, allocations: 4 kB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.52e-05/0.3934, allocations: 2.844 kB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.248e-05/0.3934, allocations: 0 / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.465e-05/0.3935, allocations: 0 / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.816e-06/0.3935, allocations: 0 / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009525/0.3944, allocations: 442.1 kB / 0.5182 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.3945, allocations: 2.812 kB / 0.5182 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/0.3945, allocations: 29.7 kB / 0.5183 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004363/0.395, allocations: 212.2 kB / 0.5185 GB, free: 35.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.395, allocations: 0 / 0.5185 GB, free: 35.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.395, allocations: 0 / 0.5185 GB, free: 35.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.395, allocations: 0 / 0.5185 GB, free: 35.66 MB / 378.7 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.0003622/0.3954, allocations: 372.6 kB / 0.5188 GB, free: 35.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.3955, allocations: 12.11 kB / 0.5188 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.975e-05/0.3955, allocations: 0.9375 kB / 0.5188 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.357e-05/0.3956, allocations: 160.4 kB / 0.519 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.3956, allocations: 4.375 kB / 0.519 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.365e-05/0.3957, allocations: 7.125 kB / 0.519 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.3958, allocations: 30.02 kB / 0.519 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3958, allocations: 2.875 kB / 0.519 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.3958, allocations: 0 / 0.519 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.3959, allocations: 0 / 0.519 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.596e-05/0.3959, allocations: 11.11 kB / 0.5191 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001273/0.396, allocations: 144.5 kB / 0.5192 GB, free: 34.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.155e-05/0.3961, allocations: 22.58 kB / 0.5192 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.3962, allocations: 11.73 kB / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.3962, allocations: 0 / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.3962, allocations: 63.39 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.3963, allocations: 2.906 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002077/0.3965, allocations: 61.19 kB / 0.5193 GB, free: 34.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.3965, allocations: 84.3 kB / 0.5194 GB, free: 34.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.736e-05/0.3966, allocations: 92.92 kB / 0.5195 GB, free: 34.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.3966, allocations: 33.77 kB / 0.5195 GB, free: 34.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.461e-05/0.3966, allocations: 80.14 kB / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.3967, allocations: 0 / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-06/0.3967, allocations: 0 / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.624e-05/0.3967, allocations: 310.8 kB / 0.5199 GB, free: 34.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.459e-05/0.3968, allocations: 2.781 kB / 0.5199 GB, free: 34.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.087e-06/0.3968, allocations: 16 / 0.5199 GB, free: 34.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.633e-05/0.3969, allocations: 59.17 kB / 0.52 GB, free: 33.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3969, allocations: 8 kB / 0.52 GB, free: 33.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.7e-05/0.397, allocations: 67.59 kB / 0.5201 GB, free: 33.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.975e-05/0.397, allocations: 35.61 kB / 0.5201 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3971, allocations: 0 / 0.5201 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3971, allocations: 0 / 0.5201 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.364e-06/0.3971, allocations: 0 / 0.5201 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.3971, allocations: 0 / 0.5201 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.605e-05/0.3972, allocations: 3.047 kB / 0.5201 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.3972, allocations: 3.625 kB / 0.5201 GB, free: 33.83 MB / 378.7 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 8.501e-05/0.3973, allocations: 135.6 kB / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.3973, allocations: 3.938 kB / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.664e-05/0.3973, allocations: 6.062 kB / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3974, allocations: 0 / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3974, allocations: 0 / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.3974, allocations: 0 / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.807e-05/0.3975, allocations: 151.5 kB / 0.5204 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3975, allocations: 0 / 0.5204 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.968e-06/0.3975, allocations: 0 / 0.5204 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.3975, allocations: 7.875 kB / 0.5204 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.3975, allocations: 4 kB / 0.5204 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.3976, allocations: 3.188 kB / 0.5204 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3976, allocations: 6.75 kB / 0.5204 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.3977, allocations: 90.73 kB / 0.5205 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.916e-05/0.3978, allocations: 79.95 kB / 0.5206 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.3978, allocations: 3.938 kB / 0.5206 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.562e-05/0.3978, allocations: 0 / 0.5206 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.31e-05/0.3979, allocations: 8.016 kB / 0.5206 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.311e-06/0.3979, allocations: 6.938 kB / 0.5206 GB, free: 33.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.511e-05/0.3979, allocations: 75.28 kB / 0.5206 GB, free: 33.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3979, allocations: 0 / 0.5206 GB, free: 33.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005136/0.3984, allocations: 63.25 kB / 0.5207 GB, free: 33.17 MB / 378.7 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.0006369/0.3991, allocations: 195.2 kB / 0.5209 GB, free: 33.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.3992, allocations: 60.78 kB / 0.521 GB, free: 32.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3992, allocations: 0 / 0.521 GB, free: 32.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.311e-05/0.3993, allocations: 57.8 kB / 0.521 GB, free: 32.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.3995, allocations: 11.58 kB / 0.521 GB, free: 32.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002065/0.3997, allocations: 101.9 kB / 0.5211 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.3999, allocations: 0.6731 MB / 0.5218 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.15e-05/0.3999, allocations: 13.91 kB / 0.5218 GB, free: 32.08 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3999, allocations: 0 / 0.5218 GB, free: 32.08 MB / 378.7 MB Notification: Performance of Templates: time 0.004263/0.4042, allocations: 1.263 MB / 0.523 GB, free: 31.98 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches