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.00103/0.00103, allocations: 199.5 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.6 MB / 243.1 MB, free: 12.54 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007112/0.0007114, allocations: 101.1 kB / 295.1 MB, free: 4.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1685/0.1685, allocations: 44.83 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002239, allocations: 4 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09098/0.09122, allocations: 62.95 MB / 0.5153 GB, free: 5.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0004799/0.09173, allocations: 212.6 kB / 0.5155 GB, free: 4.898 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.09329, allocations: 1.544 MB / 0.517 GB, free: 3.336 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.395e-05/0.09333, allocations: 7.938 kB / 0.517 GB, free: 3.328 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.779e-06/0.09335, allocations: 0 / 0.517 GB, free: 3.328 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.162e-06/0.09336, allocations: 0 / 0.517 GB, free: 3.328 MB / 346.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.0007566/0.09413, allocations: 239.5 kB / 0.5173 GB, free: 3.094 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.182e-05/0.09417, allocations: 0 / 0.5173 GB, free: 3.094 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.687e-05/0.09422, allocations: 4 kB / 0.5173 GB, free: 3.09 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.757e-05/0.09424, allocations: 4 kB / 0.5173 GB, free: 3.086 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.173e-05/0.09427, allocations: 0 / 0.5173 GB, free: 3.086 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.37e-06/0.09428, allocations: 0 / 0.5173 GB, free: 3.086 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005069/0.09479, allocations: 439 kB / 0.5177 GB, free: 2.656 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.882e-06/0.09481, allocations: 0 / 0.5177 GB, free: 2.656 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.09484, allocations: 29.7 kB / 0.5177 GB, free: 2.621 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.09509, allocations: 211.7 kB / 0.5179 GB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.0951, allocations: 4 kB / 0.5179 GB, free: 2.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.09511, allocations: 0 / 0.5179 GB, free: 2.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.09512, allocations: 0 / 0.5179 GB, free: 2.41 MB / 346.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.0002355/0.09536, allocations: 369.1 kB / 0.5183 GB, free: 1.996 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.0954, allocations: 12.03 kB / 0.5183 GB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.639e-05/0.09543, allocations: 0 / 0.5183 GB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.468e-05/0.09549, allocations: 167 kB / 0.5184 GB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.09551, allocations: 0 / 0.5184 GB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.09552, allocations: 0 / 0.5184 GB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.452e-05/0.09559, allocations: 41.58 kB / 0.5185 GB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.09561, allocations: 4 kB / 0.5185 GB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-06/0.09562, allocations: 0 / 0.5185 GB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.09563, allocations: 7.922 kB / 0.5185 GB, free: 1.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.371e-05/0.09564, allocations: 0 / 0.5185 GB, free: 1.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.742e-05/0.09573, allocations: 149.6 kB / 0.5186 GB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.126e-05/0.09576, allocations: 22.56 kB / 0.5187 GB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.011e-05/0.09578, allocations: 12.89 kB / 0.5187 GB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.09579, allocations: 4 kB / 0.5187 GB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.09582, allocations: 56.27 kB / 0.5187 GB, free: 1.406 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.09583, allocations: 0 / 0.5187 GB, free: 1.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001277/0.09596, allocations: 63.39 kB / 0.5188 GB, free: 1.332 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.09599, allocations: 81.11 kB / 0.5189 GB, free: 1.234 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.766e-05/0.09602, allocations: 89.86 kB / 0.519 GB, free: 1.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.23e-06/0.09603, allocations: 25.7 kB / 0.519 GB, free: 1.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.628e-06/0.09604, allocations: 84.27 kB / 0.5191 GB, free: 1.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.09606, allocations: 4 kB / 0.5191 GB, free: 1.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.834e-06/0.09607, allocations: 0 / 0.5191 GB, free: 1.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.796e-05/0.09611, allocations: 310.8 kB / 0.5194 GB, free: 0.7031 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.244e-06/0.09612, allocations: 0 / 0.5194 GB, free: 0.7031 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.418e-06/0.09613, allocations: 3.938 kB / 0.5194 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.386e-05/0.09616, allocations: 29.7 kB / 0.5194 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.09617, allocations: 0 / 0.5194 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.978e-05/0.09622, allocations: 71.34 kB / 0.5195 GB, free: 0.582 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.09625, allocations: 33.8 kB / 0.5195 GB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.09626, allocations: 0 / 0.5195 GB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.09628, allocations: 0 / 0.5195 GB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.09628, allocations: 0 / 0.5195 GB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.09629, allocations: 0 / 0.5195 GB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.519e-05/0.09631, allocations: 4 kB / 0.5195 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.09632, allocations: 0 / 0.5195 GB, free: 0.5391 MB / 346.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 5.217e-05/0.09638, allocations: 135.5 kB / 0.5196 GB, free: 400 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-06/0.09639, allocations: 7.953 kB / 0.5196 GB, free: 392 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.765e-06/0.09641, allocations: 7.125 kB / 0.5196 GB, free: 388 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.09641, allocations: 0 / 0.5196 GB, free: 388 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.09642, allocations: 0 / 0.5196 GB, free: 388 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.09643, allocations: 3.938 kB / 0.5196 GB, free: 384 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.051e-05/0.09648, allocations: 145.6 kB / 0.5198 GB, free: 188 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.09649, allocations: 0 / 0.5198 GB, free: 188 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-06/0.0965, allocations: 11.92 kB / 0.5198 GB, free: 176 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.0965, allocations: 3.953 kB / 0.5198 GB, free: 172 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.09654, allocations: 4 kB / 0.5198 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.09654, allocations: 0 / 0.5198 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.09655, allocations: 0 / 0.5198 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.604e-05/0.09662, allocations: 94.83 kB / 0.5199 GB, free: 48 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.09668, allocations: 81.05 kB / 0.52 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.09669, allocations: 3.953 kB / 0.52 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-06/0.09671, allocations: 0 / 0.52 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.541e-05/0.09673, allocations: 4 kB / 0.52 GB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.09674, allocations: 0 / 0.52 GB, free: 15.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.486e-05/0.09677, allocations: 75.31 kB / 0.5201 GB, free: 15.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09677, allocations: 4 kB / 0.5201 GB, free: 15.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003069/0.09709, allocations: 63.98 kB / 0.5201 GB, free: 15.8 MB / 362.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.0004073/0.0975, allocations: 181.4 kB / 0.5203 GB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.113e-05/0.09759, allocations: 67.34 kB / 0.5204 GB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.0976, allocations: 0 / 0.5204 GB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.702e-05/0.09763, allocations: 59.39 kB / 0.5204 GB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001119/0.09775, allocations: 2.391 kB / 0.5204 GB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001533/0.09791, allocations: 104.5 kB / 0.5205 GB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.09811, allocations: 0.677 MB / 0.5212 GB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.167e-06/0.09813, allocations: 7.438 kB / 0.5212 GB, free: 14.62 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09813, allocations: 0 / 0.5212 GB, free: 14.62 MB / 362.7 MB Notification: Performance of Templates: time 0.002627/0.1008, allocations: 1.266 MB / 0.5224 GB, free: 13.36 MB / 362.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