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.001648/0.001648, allocations: 117.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001797/0.001797, allocations: 208.6 kB / 18.74 MB, free: 4.336 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.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.219/0.219, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002233/0.002233, allocations: 67.89 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4175, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001475/0.419, allocations: 0.489 MB / 0.5314 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007356/0.4264, allocations: 4.884 MB / 0.5362 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.333e-05/0.4265, allocations: 1.219 kB / 0.5362 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.4265, allocations: 0 / 0.5362 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.053e-06/0.4266, allocations: 0 / 0.5362 GB, free: 9.477 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.007338/0.4339, allocations: 2.938 MB / 0.5391 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.269e-05/0.434, allocations: 2.219 kB / 0.5391 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.493e-05/0.434, allocations: 5.078 kB / 0.5391 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.763e-05/0.434, allocations: 5.078 kB / 0.5391 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.631e-05/0.4341, allocations: 4 kB / 0.5391 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.4341, allocations: 1.125 kB / 0.5391 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03204/0.4661, allocations: 18.81 MB / 0.5575 GB, free: 6.582 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.4662, allocations: 0 / 0.5575 GB, free: 6.582 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.788e-05/0.4662, allocations: 4 kB / 0.5575 GB, free: 6.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03515/0.5014, allocations: 27.48 MB / 0.5843 GB, free: 11.06 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5014, allocations: 0 / 0.5843 GB, free: 11.06 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.117e-06/0.5015, allocations: 0 / 0.5843 GB, free: 11.06 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.5015, allocations: 3.938 kB / 0.5843 GB, free: 11.05 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.007797/0.5093, allocations: 0.6534 MB / 0.585 GB, free: 10.35 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.5093, allocations: 8.031 kB / 0.585 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.5094, allocations: 0.9375 kB / 0.585 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.325e-05/0.5095, allocations: 167 kB / 0.5851 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.5095, allocations: 0 / 0.5851 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.5095, allocations: 4 kB / 0.5851 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.457e-05/0.5096, allocations: 33.62 kB / 0.5852 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.5096, allocations: 0 / 0.5852 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.5096, allocations: 0 / 0.5852 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.5097, allocations: 4 kB / 0.5852 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.807e-05/0.5097, allocations: 4 kB / 0.5852 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001315/0.5098, allocations: 149.6 kB / 0.5853 GB, free: 9.895 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.154e-05/0.5099, allocations: 22.55 kB / 0.5853 GB, free: 9.863 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.5099, allocations: 8.844 kB / 0.5853 GB, free: 9.852 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-06/0.5099, allocations: 0 / 0.5853 GB, free: 9.852 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.51, allocations: 56.27 kB / 0.5854 GB, free: 9.781 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.51, allocations: 4 kB / 0.5854 GB, free: 9.777 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001688/0.5101, allocations: 67.41 kB / 0.5855 GB, free: 9.699 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.5102, allocations: 81.11 kB / 0.5855 GB, free: 9.602 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.983e-05/0.5103, allocations: 93.84 kB / 0.5856 GB, free: 9.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.5103, allocations: 25.7 kB / 0.5857 GB, free: 9.469 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.707e-05/0.5103, allocations: 84.08 kB / 0.5857 GB, free: 9.383 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.5103, allocations: 3.906 kB / 0.5857 GB, free: 9.379 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.5104, allocations: 13.72 kB / 0.5857 GB, free: 9.359 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.807e-05/0.5105, allocations: 318.9 kB / 0.5861 GB, free: 9.039 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.5105, allocations: 0 / 0.5861 GB, free: 9.039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-06/0.5105, allocations: 4 kB / 0.5861 GB, free: 9.035 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.399e-05/0.5105, allocations: 64.27 kB / 0.5861 GB, free: 8.957 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5106, allocations: 0 / 0.5861 GB, free: 8.957 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.248e-05/0.5106, allocations: 67.33 kB / 0.5862 GB, free: 8.879 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.5107, allocations: 29.7 kB / 0.5862 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.5107, allocations: 0 / 0.5862 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.5107, allocations: 4.094 kB / 0.5862 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.5107, allocations: 4 kB / 0.5862 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.5107, allocations: 0 / 0.5862 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.644e-05/0.5107, allocations: 0 / 0.5862 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.5107, allocations: 3.938 kB / 0.5862 GB, free: 8.832 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 8.06e-05/0.5108, allocations: 147.5 kB / 0.5864 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.414e-06/0.5108, allocations: 0 / 0.5864 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.849e-06/0.5109, allocations: 3.125 kB / 0.5864 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.5109, allocations: 0 / 0.5864 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.5109, allocations: 0 / 0.5864 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.5109, allocations: 7.938 kB / 0.5864 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.202e-05/0.511, allocations: 153.6 kB / 0.5865 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.511, allocations: 0 / 0.5865 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.511, allocations: 0 / 0.5865 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.511, allocations: 0 / 0.5865 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.511, allocations: 0 / 0.5865 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.511, allocations: 0 / 0.5865 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.511, allocations: 0 / 0.5865 GB, free: 8.465 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.53e-05/0.5111, allocations: 106.7 kB / 0.5866 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.729e-05/0.5112, allocations: 77.11 kB / 0.5867 GB, free: 8.242 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.5112, allocations: 4 kB / 0.5867 GB, free: 8.238 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.665e-05/0.5112, allocations: 0 / 0.5867 GB, free: 8.238 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.078e-05/0.5112, allocations: 0 / 0.5867 GB, free: 8.238 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.5112, allocations: 0 / 0.5867 GB, free: 8.238 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.385e-05/0.5113, allocations: 79.22 kB / 0.5868 GB, free: 8.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5113, allocations: 0 / 0.5868 GB, free: 8.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01266/0.5239, allocations: 3.781 MB / 0.5905 GB, free: 4.379 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.02522/0.5492, allocations: 0.9669 MB / 0.5914 GB, free: 3.418 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001804/0.5494, allocations: 63.33 kB / 0.5915 GB, free: 3.344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5494, allocations: 0 / 0.5915 GB, free: 3.344 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.246e-05/0.5494, allocations: 55.41 kB / 0.5915 GB, free: 3.277 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.5496, allocations: 4 kB / 0.5915 GB, free: 3.273 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002277/0.5499, allocations: 89.12 kB / 0.5916 GB, free: 3.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.5501, allocations: 0.6768 MB / 0.5923 GB, free: 2.457 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.232e-06/0.5501, allocations: 0 / 0.5923 GB, free: 2.457 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.568e-05/0.5501, allocations: 11.44 kB / 0.5923 GB, free: 2.445 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.5501, allocations: 0 / 0.5923 GB, free: 2.445 MB / 446.1 MB Notification: Performance of Templates: time 0.1698/0.7199, allocations: 112.6 MB / 0.7022 GB, free: 1.648 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)