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.001321/0.001321, allocations: 117.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001942, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2355/0.2355, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 83.86 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4315/0.433, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.00186/0.4349, allocations: 489.2 kB / 0.5314 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008512/0.4434, allocations: 4.884 MB / 0.5362 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.39e-05/0.4435, allocations: 4 kB / 0.5362 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.598e-05/0.4435, allocations: 0 / 0.5362 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.144e-06/0.4435, allocations: 0 / 0.5362 GB, free: 9.48 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.009273/0.4528, allocations: 2.943 MB / 0.5391 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.826e-05/0.4529, allocations: 5.047 kB / 0.5391 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.045e-05/0.453, allocations: 1.312 kB / 0.5391 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.453, allocations: 5.328 kB / 0.5391 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.217e-05/0.453, allocations: 0 / 0.5391 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.356e-06/0.453, allocations: 1.219 kB / 0.5391 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03282/0.4859, allocations: 18.82 MB / 0.5575 GB, free: 6.566 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.511e-05/0.4859, allocations: 0 / 0.5575 GB, free: 6.566 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.486, allocations: 8 kB / 0.5575 GB, free: 6.559 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03829/0.5243, allocations: 27.48 MB / 0.5843 GB, free: 11.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.5243, allocations: 0 / 0.5843 GB, free: 11.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.5243, allocations: 0 / 0.5843 GB, free: 11.04 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.5243, allocations: 0 / 0.5843 GB, free: 11.04 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.01197/0.5363, allocations: 0.6456 MB / 0.585 GB, free: 10.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.5364, allocations: 8.031 kB / 0.585 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.184e-05/0.5364, allocations: 0.9375 kB / 0.585 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.5366, allocations: 171 kB / 0.5851 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.5366, allocations: 4 kB / 0.5851 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.5366, allocations: 8 kB / 0.5851 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.5368, allocations: 25.7 kB / 0.5852 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.5368, allocations: 7.875 kB / 0.5852 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.5369, allocations: 0 / 0.5852 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.5369, allocations: 4 kB / 0.5852 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.725e-05/0.5369, allocations: 0 / 0.5852 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001522/0.5371, allocations: 145.6 kB / 0.5853 GB, free: 9.883 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.799e-05/0.5371, allocations: 26.59 kB / 0.5853 GB, free: 9.848 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.5372, allocations: 4.859 kB / 0.5853 GB, free: 9.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.5372, allocations: 4 kB / 0.5853 GB, free: 9.836 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.055e-05/0.5372, allocations: 56.27 kB / 0.5854 GB, free: 9.766 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 3.797e-06/0.5372, allocations: 64 / 0.5854 GB, free: 9.766 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002105/0.5375, allocations: 67.33 kB / 0.5855 GB, free: 9.688 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.5375, allocations: 81.11 kB / 0.5855 GB, free: 9.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.876e-05/0.5376, allocations: 89.98 kB / 0.5856 GB, free: 9.492 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.5376, allocations: 29.7 kB / 0.5857 GB, free: 9.457 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.5377, allocations: 84.08 kB / 0.5857 GB, free: 9.371 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.5377, allocations: 7.906 kB / 0.5857 GB, free: 9.363 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.5377, allocations: 13.72 kB / 0.5858 GB, free: 9.344 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.5379, allocations: 314.8 kB / 0.5861 GB, free: 9.027 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.5379, allocations: 0 / 0.5861 GB, free: 9.027 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.512e-06/0.5379, allocations: 0 / 0.5861 GB, free: 9.027 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.474e-05/0.538, allocations: 72.25 kB / 0.5861 GB, free: 8.941 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.538, allocations: 0 / 0.5861 GB, free: 8.941 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001907/0.5382, allocations: 63.41 kB / 0.5862 GB, free: 8.867 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/0.5382, allocations: 29.7 kB / 0.5862 GB, free: 8.832 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.5382, allocations: 0 / 0.5862 GB, free: 8.832 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.5382, allocations: 4 kB / 0.5862 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.683e-06/0.5383, allocations: 0 / 0.5862 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.5383, allocations: 0 / 0.5862 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.5383, allocations: 0 / 0.5862 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.5383, allocations: 7.922 kB / 0.5862 GB, free: 8.82 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.0001001/0.5384, allocations: 143.5 kB / 0.5864 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.5384, allocations: 0 / 0.5864 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.222e-05/0.5384, allocations: 3.125 kB / 0.5864 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.5385, allocations: 3.984 kB / 0.5864 GB, free: 8.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5385, allocations: 0 / 0.5864 GB, free: 8.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.5385, allocations: 0 / 0.5864 GB, free: 8.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.5386, allocations: 161.5 kB / 0.5865 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5387, allocations: 0 / 0.5865 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.5387, allocations: 0 / 0.5865 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.5387, allocations: 4 kB / 0.5865 GB, free: 8.449 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.5387, allocations: 3.938 kB / 0.5865 GB, free: 8.445 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.5387, allocations: 4 kB / 0.5865 GB, free: 8.441 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.205e-05/0.5388, allocations: 4 kB / 0.5865 GB, free: 8.438 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001092/0.5389, allocations: 90.77 kB / 0.5866 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.5389, allocations: 77.11 kB / 0.5867 GB, free: 8.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.539, allocations: 4 kB / 0.5867 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.113e-05/0.539, allocations: 0 / 0.5867 GB, free: 8.227 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.515e-05/0.539, allocations: 4.031 kB / 0.5867 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.539, allocations: 0 / 0.5867 GB, free: 8.223 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.62e-05/0.5391, allocations: 79.22 kB / 0.5868 GB, free: 8.145 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5391, allocations: 0 / 0.5868 GB, free: 8.145 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01517/0.5542, allocations: 3.781 MB / 0.5905 GB, free: 4.363 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.03061/0.5849, allocations: 0.9605 MB / 0.5914 GB, free: 3.406 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.5851, allocations: 67.39 kB / 0.5915 GB, free: 3.328 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5851, allocations: 0 / 0.5915 GB, free: 3.328 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.27e-05/0.5852, allocations: 55.41 kB / 0.5915 GB, free: 3.262 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001664/0.5854, allocations: 4 kB / 0.5915 GB, free: 3.258 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002524/0.5856, allocations: 77.06 kB / 0.5916 GB, free: 3.156 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.5861, allocations: 0.6806 MB / 0.5923 GB, free: 2.449 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.178e-06/0.5862, allocations: 3.984 kB / 0.5923 GB, free: 2.445 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.019e-05/0.5862, allocations: 11.44 kB / 0.5923 GB, free: 2.434 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5862, allocations: 4.125 kB / 0.5923 GB, free: 2.43 MB / 446.1 MB Notification: Performance of Templates: time 0.1777/0.7639, allocations: 112.6 MB / 0.7022 GB, free: 1.629 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)