Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001199/0.0012, allocations: 101 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 199.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2153/0.2153, allocations: 45.92 MB / 344 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002771, allocations: 12 kB / 417.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1409, allocations: 63.46 MB / 481.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0005187/0.1415, allocations: 209.2 kB / 481.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002904/0.1444, allocations: 2.019 MB / 483.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.763e-05/0.1445, allocations: 0 / 483.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.197e-05/0.1445, allocations: 3.938 kB / 483.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1445, allocations: 0 / 483.6 MB, free: 3.219 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:485:3-574:17:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2b‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.1462, allocations: 0.6141 MB / 484.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.308e-05/0.1462, allocations: 0 / 484.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.671e-05/0.1463, allocations: 4 kB / 484.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.374e-05/0.1463, allocations: 0 / 484.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.027e-05/0.1463, allocations: 4 kB / 484.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.1463, allocations: 0 / 484.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001644/0.148, allocations: 1.28 MB / 485.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.422e-06/0.148, allocations: 0 / 485.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.822e-05/0.148, allocations: 25.7 kB / 485.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009926/0.149, allocations: 1.154 MB / 486.7 MB, free: 140 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.149, allocations: 0 / 486.7 MB, free: 140 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.149, allocations: 4 kB / 486.7 MB, free: 136 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1491, allocations: 4 kB / 486.7 MB, free: 132 kB / 350.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.0005372/0.1496, allocations: 413 kB / 487.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1496, allocations: 8.031 kB / 487.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.251e-05/0.1497, allocations: 4 kB / 487.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.622e-05/0.1498, allocations: 167 kB / 487.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1498, allocations: 0 / 487.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.1498, allocations: 0 / 487.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.062e-05/0.1499, allocations: 29.7 kB / 487.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.1499, allocations: 0 / 487.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.1499, allocations: 4 kB / 487.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.15, allocations: 0 / 487.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.59e-05/0.15, allocations: 0 / 487.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.1501, allocations: 161.6 kB / 487.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.924e-05/0.1502, allocations: 22.45 kB / 487.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.1502, allocations: 0 / 487.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/0.1503, allocations: 56.36 kB / 487.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1503, allocations: 8 kB / 487.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001656/0.1504, allocations: 59.39 kB / 487.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.1506, allocations: 89.05 kB / 487.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.241e-05/0.1506, allocations: 89.86 kB / 487.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.1506, allocations: 25.7 kB / 487.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.121e-05/0.1507, allocations: 80.14 kB / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.1507, allocations: 3.906 kB / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-06/0.1507, allocations: 0 / 487.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1509, allocations: 315 kB / 488.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.1509, allocations: 7.938 kB / 488.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.569e-06/0.1509, allocations: 0 / 488.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.996e-05/0.151, allocations: 25.7 kB / 488.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.151, allocations: 3.953 kB / 488.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.791e-05/0.151, allocations: 67.39 kB / 488.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.115e-05/0.1511, allocations: 29.7 kB / 488.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1511, allocations: 0 / 488.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1511, allocations: 4 kB / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.1511, allocations: 8.094 kB / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1511, allocations: 0 / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.544e-05/0.1512, allocations: 0 / 488.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.1512, allocations: 0 / 488.3 MB, free: 14.23 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.589e-05/0.1513, allocations: 143.8 kB / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.1513, allocations: 3.953 kB / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.205e-06/0.1513, allocations: 3.125 kB / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.1513, allocations: 0 / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1513, allocations: 0 / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.1513, allocations: 4 kB / 488.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.1514, allocations: 145.7 kB / 488.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.1515, allocations: 0 / 488.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.256e-06/0.1515, allocations: 7.938 kB / 488.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1515, allocations: 0 / 488.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.1515, allocations: 4 kB / 488.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1515, allocations: 0 / 488.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1515, allocations: 3.938 kB / 488.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.532e-05/0.1516, allocations: 98.81 kB / 488.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.912e-05/0.1516, allocations: 81.05 kB / 488.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.1516, allocations: 7.953 kB / 488.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-06/0.1517, allocations: 0 / 488.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.592e-05/0.1517, allocations: 0 / 488.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.1517, allocations: 3.938 kB / 488.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.902e-05/0.1517, allocations: 75.28 kB / 488.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1517, allocations: 0 / 488.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008706/0.1526, allocations: 272 kB / 489.2 MB, free: 13.29 MB / 366.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 (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.00118/0.1538, allocations: 409.8 kB / 489.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.761e-05/0.1539, allocations: 63.41 kB / 489.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1539, allocations: 0 / 489.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.244e-05/0.1539, allocations: 55.39 kB / 489.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.314e-05/0.154, allocations: 4 kB / 489.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002067/0.1542, allocations: 74.7 kB / 489.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.1545, allocations: 0.677 MB / 490.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.033e-06/0.1545, allocations: 4.125 kB / 490.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.109e-05/0.1545, allocations: 7.438 kB / 490.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1545, allocations: 0 / 490.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of Templates: time 0.01582/0.1704, allocations: 7.616 MB / 498.1 MB, free: 4.297 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)