Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001177/0.001177, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001268, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2374/0.2374, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 67.89 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4215, allocations: 62.43 MB / 0.531 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001653/0.4232, allocations: 0.4988 MB / 0.5315 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008382/0.4316, allocations: 4.881 MB / 0.5362 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.304e-05/0.4317, allocations: 0 / 0.5362 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.4317, allocations: 0 / 0.5362 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.415e-06/0.4318, allocations: 0 / 0.5362 GB, free: 9.699 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.008977/0.4408, allocations: 2.931 MB / 0.5391 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.625e-05/0.4409, allocations: 5 kB / 0.5391 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.141e-05/0.4409, allocations: 4.828 kB / 0.5391 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.083e-05/0.4409, allocations: 1.312 kB / 0.5391 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.111e-05/0.441, allocations: 1.438 kB / 0.5391 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.662e-06/0.441, allocations: 0 / 0.5391 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03235/0.4733, allocations: 18.82 MB / 0.5575 GB, free: 6.742 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.418e-05/0.4734, allocations: 0 / 0.5575 GB, free: 6.742 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.227e-05/0.4734, allocations: 0 / 0.5575 GB, free: 6.742 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04558/0.519, allocations: 27.48 MB / 0.5843 GB, free: 11.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.219e-05/0.5191, allocations: 4 kB / 0.5843 GB, free: 11.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5191, allocations: 7.938 kB / 0.5843 GB, free: 11.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.5191, allocations: 4 kB / 0.5843 GB, free: 11.2 MB / 446.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.01381/0.5329, allocations: 0.6658 MB / 0.585 GB, free: 10.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.533, allocations: 12.03 kB / 0.585 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.481e-05/0.5331, allocations: 0.9375 kB / 0.585 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.5332, allocations: 167.2 kB / 0.5851 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.5332, allocations: 0 / 0.5851 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.5332, allocations: 0 / 0.5851 GB, free: 10.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.5334, allocations: 33.7 kB / 0.5852 GB, free: 10.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.5334, allocations: 0 / 0.5852 GB, free: 10.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.5334, allocations: 0 / 0.5852 GB, free: 10.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.5334, allocations: 3.938 kB / 0.5852 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.131e-05/0.5334, allocations: 7.938 kB / 0.5852 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.5336, allocations: 153.6 kB / 0.5853 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.396e-05/0.5337, allocations: 14.58 kB / 0.5854 GB, free: 9.992 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.929e-05/0.5337, allocations: 8.953 kB / 0.5854 GB, free: 9.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.5337, allocations: 4 kB / 0.5854 GB, free: 9.977 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.5338, allocations: 60.25 kB / 0.5854 GB, free: 9.902 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.5338, allocations: 0 / 0.5854 GB, free: 9.902 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002156/0.534, allocations: 71.33 kB / 0.5855 GB, free: 9.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.871e-05/0.534, allocations: 77.11 kB / 0.5856 GB, free: 9.727 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.575e-05/0.5341, allocations: 89.86 kB / 0.5857 GB, free: 9.629 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.5341, allocations: 25.7 kB / 0.5857 GB, free: 9.598 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.471e-05/0.5342, allocations: 84.14 kB / 0.5858 GB, free: 9.512 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.5342, allocations: 4.125 kB / 0.5858 GB, free: 9.508 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.5342, allocations: 9.719 kB / 0.5858 GB, free: 9.492 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5344, allocations: 318.8 kB / 0.5861 GB, free: 9.172 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.361e-05/0.5344, allocations: 4 kB / 0.5861 GB, free: 9.168 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.173e-06/0.5345, allocations: 0 / 0.5861 GB, free: 9.168 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.989e-05/0.5345, allocations: 68.25 kB / 0.5861 GB, free: 9.086 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.5345, allocations: 0 / 0.5861 GB, free: 9.086 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001029/0.5346, allocations: 67.41 kB / 0.5862 GB, free: 9.008 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.5347, allocations: 29.7 kB / 0.5862 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.5347, allocations: 0 / 0.5862 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.5347, allocations: 0 / 0.5862 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.5347, allocations: 0 / 0.5862 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.5347, allocations: 3.984 kB / 0.5862 GB, free: 8.969 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.175e-05/0.5348, allocations: 4 kB / 0.5862 GB, free: 8.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.5348, allocations: 7.938 kB / 0.5862 GB, free: 8.957 MB / 446.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.0001058/0.5349, allocations: 135.5 kB / 0.5864 GB, free: 8.809 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.174e-05/0.5349, allocations: 8.031 kB / 0.5864 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.146e-05/0.5349, allocations: 3.125 kB / 0.5864 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.5349, allocations: 3.938 kB / 0.5864 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.5349, allocations: 0 / 0.5864 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.535, allocations: 0 / 0.5864 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.5351, allocations: 149.6 kB / 0.5865 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5351, allocations: 0 / 0.5865 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-07/0.5351, allocations: 7.938 kB / 0.5865 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.5351, allocations: 0 / 0.5865 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.5351, allocations: 0 / 0.5865 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.5351, allocations: 0 / 0.5865 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5351, allocations: 4 kB / 0.5865 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.5352, allocations: 98.7 kB / 0.5866 GB, free: 8.469 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.321e-05/0.5353, allocations: 77.11 kB / 0.5867 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.5353, allocations: 0 / 0.5867 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.196e-05/0.5353, allocations: 0 / 0.5867 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.542e-05/0.5353, allocations: 4 kB / 0.5867 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.5354, allocations: 4 kB / 0.5867 GB, free: 8.367 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.465e-05/0.5354, allocations: 83.25 kB / 0.5868 GB, free: 8.285 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5354, allocations: 0 / 0.5868 GB, free: 8.285 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01446/0.5499, allocations: 3.787 MB / 0.5905 GB, free: 4.496 MB / 446.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.03202/0.5819, allocations: 0.9829 MB / 0.5915 GB, free: 3.516 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001739/0.5822, allocations: 63.39 kB / 0.5915 GB, free: 3.441 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5822, allocations: 0 / 0.5915 GB, free: 3.441 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.079e-05/0.5822, allocations: 59.47 kB / 0.5916 GB, free: 3.371 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.5824, allocations: 6.5 kB / 0.5916 GB, free: 3.367 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002551/0.5827, allocations: 84.95 kB / 0.5917 GB, free: 3.258 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.583, allocations: 0.669 MB / 0.5923 GB, free: 2.562 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.997e-06/0.583, allocations: 0 / 0.5923 GB, free: 2.562 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.322e-05/0.583, allocations: 15.38 kB / 0.5923 GB, free: 2.547 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.583, allocations: 0 / 0.5923 GB, free: 2.547 MB / 446.1 MB Notification: Performance of Templates: time 0.1934/0.7764, allocations: 112.6 MB / 0.7023 GB, free: 1.75 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1)