Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3") translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001109/0.001109, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000806/0.0008062, allocations: 96.42 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3394/0.3394, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3634, allocations: 62.96 MB / 0.5159 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0005424/0.364, allocations: 214.2 kB / 0.5161 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.3656, allocations: 1.511 MB / 0.5175 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.678e-05/0.3656, allocations: 0 / 0.5175 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.639e-06/0.3656, allocations: 0 / 0.5175 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.023e-06/0.3657, allocations: 0 / 0.5175 GB, free: 36.1 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:576:3-610:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices3‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006784/0.3663, allocations: 196.8 kB / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.253e-05/0.3664, allocations: 7.016 kB / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.613e-05/0.3664, allocations: 3.609 kB / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.414e-05/0.3664, allocations: 0 / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.613e-05/0.3665, allocations: 0 / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.159e-06/0.3665, allocations: 3.844 kB / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007273/0.3672, allocations: 0.6682 MB / 0.5184 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.665e-06/0.3672, allocations: 3.984 kB / 0.5184 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.3673, allocations: 25.7 kB / 0.5184 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.3676, allocations: 450.2 kB / 0.5189 GB, free: 35.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3676, allocations: 2.844 kB / 0.5189 GB, free: 35.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3676, allocations: 0 / 0.5189 GB, free: 35.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3676, allocations: 0 / 0.5189 GB, free: 35.87 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.0003093/0.3679, allocations: 361.1 kB / 0.5192 GB, free: 35.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.368, allocations: 8.812 kB / 0.5192 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.368, allocations: 4.172 kB / 0.5192 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.777e-05/0.3681, allocations: 160.4 kB / 0.5194 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.3681, allocations: 3.188 kB / 0.5194 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.3681, allocations: 4.375 kB / 0.5194 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.159e-05/0.3682, allocations: 32.98 kB / 0.5194 GB, free: 35.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.3682, allocations: 0 / 0.5194 GB, free: 35.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.3682, allocations: 0 / 0.5194 GB, free: 35.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3682, allocations: 0 / 0.5194 GB, free: 35.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.722e-05/0.3682, allocations: 10.14 kB / 0.5194 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.157e-05/0.3683, allocations: 145.7 kB / 0.5196 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.111e-05/0.3684, allocations: 17.39 kB / 0.5196 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.195e-05/0.3684, allocations: 8.859 kB / 0.5196 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.047e-06/0.3684, allocations: 0 / 0.5196 GB, free: 35.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.3684, allocations: 66.36 kB / 0.5196 GB, free: 34.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.3684, allocations: 3.938 kB / 0.5196 GB, free: 34.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001443/0.3686, allocations: 65.03 kB / 0.5197 GB, free: 34.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.3686, allocations: 79.89 kB / 0.5198 GB, free: 34.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.093e-05/0.3686, allocations: 89.86 kB / 0.5199 GB, free: 34.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.565e-06/0.3687, allocations: 29.25 kB / 0.5199 GB, free: 34.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.176e-05/0.3687, allocations: 84.14 kB / 0.52 GB, free: 34.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.3687, allocations: 3.938 kB / 0.52 GB, free: 34.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-06/0.3687, allocations: 2.906 kB / 0.52 GB, free: 34.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.499e-05/0.3687, allocations: 314.8 kB / 0.5203 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-06/0.3688, allocations: 4 kB / 0.5203 GB, free: 34.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.077e-06/0.3688, allocations: 0 / 0.5203 GB, free: 34.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.922e-05/0.3688, allocations: 59.17 kB / 0.5203 GB, free: 34.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.3688, allocations: 10.84 kB / 0.5204 GB, free: 34.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.586e-05/0.3689, allocations: 60.44 kB / 0.5204 GB, free: 34.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.3689, allocations: 37.86 kB / 0.5205 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.3689, allocations: 0 / 0.5205 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3689, allocations: 0 / 0.5205 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3689, allocations: 0 / 0.5205 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.3689, allocations: 0 / 0.5205 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.443e-05/0.369, allocations: 2.875 kB / 0.5205 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.369, allocations: 0 / 0.5205 GB, free: 34.05 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 5.241e-05/0.369, allocations: 146.4 kB / 0.5206 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-06/0.369, allocations: 3.938 kB / 0.5206 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.665e-06/0.369, allocations: 7.125 kB / 0.5206 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3691, allocations: 3.984 kB / 0.5206 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3691, allocations: 0 / 0.5206 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3691, allocations: 2.938 kB / 0.5206 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.361e-05/0.3691, allocations: 145.2 kB / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3691, allocations: 0 / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.3691, allocations: 0 / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3691, allocations: 6.812 kB / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.3692, allocations: 0 / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.3692, allocations: 4 kB / 0.5208 GB, free: 33.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3692, allocations: 3.938 kB / 0.5208 GB, free: 33.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.38e-05/0.3692, allocations: 90 kB / 0.5209 GB, free: 33.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.949e-05/0.3693, allocations: 77.11 kB / 0.5209 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.3693, allocations: 3.938 kB / 0.5209 GB, free: 33.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.387e-06/0.3693, allocations: 2.781 kB / 0.5209 GB, free: 33.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.234e-05/0.3693, allocations: 0 / 0.5209 GB, free: 33.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.3693, allocations: 4.031 kB / 0.5209 GB, free: 33.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.644e-05/0.3694, allocations: 75.28 kB / 0.521 GB, free: 33.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.343e-06/0.3694, allocations: 0 / 0.521 GB, free: 33.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003956/0.3698, allocations: 131.7 kB / 0.5211 GB, free: 33.39 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.0007065/0.3705, allocations: 172.4 kB / 0.5213 GB, free: 33.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.483e-05/0.3706, allocations: 65.33 kB / 0.5214 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3706, allocations: 0 / 0.5214 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.537e-05/0.3706, allocations: 57.25 kB / 0.5214 GB, free: 33.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.3707, allocations: 0 / 0.5214 GB, free: 33.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001925/0.3709, allocations: 105.9 kB / 0.5215 GB, free: 33.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.3711, allocations: 0.6722 MB / 0.5222 GB, free: 32.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.688e-06/0.3711, allocations: 7.438 kB / 0.5222 GB, free: 32.32 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3711, allocations: 0 / 0.5222 GB, free: 32.32 MB / 378.7 MB Notification: Performance of Templates: time 0.00398/0.3751, allocations: 2.691 MB / 0.5248 GB, free: 32.18 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe 2>&1)