Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 103.2 kB / 18.4 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 188 kB / 19.33 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 243 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2075/0.2075, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 62.12 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.129, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001763/0.1308, allocations: 0.4946 MB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0032/0.134, allocations: 2.089 MB / 473.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.907e-05/0.1341, allocations: 4 kB / 473.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.399e-05/0.1341, allocations: 0 / 473.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.432e-06/0.1341, allocations: 0 / 473.3 MB, free: 11.06 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.002582/0.1367, allocations: 0.7278 MB / 474 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.347e-05/0.1368, allocations: 7.938 kB / 474 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.753e-05/0.1368, allocations: 0 / 474 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.909e-05/0.1369, allocations: 4 kB / 474 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.27e-05/0.1369, allocations: 0 / 474 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.662e-06/0.1369, allocations: 4 kB / 474 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002507/0.1394, allocations: 1.502 MB / 475.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.116e-05/0.1394, allocations: 0 / 475.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.983e-05/0.1395, allocations: 3.938 kB / 475.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001926/0.1414, allocations: 1.548 MB / 477.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1414, allocations: 0 / 477.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1414, allocations: 0 / 477.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1415, allocations: 4 kB / 477.1 MB, free: 7.262 MB / 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.0007012/0.1422, allocations: 425.1 kB / 477.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.1422, allocations: 8.031 kB / 477.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/0.1423, allocations: 0.9375 kB / 477.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.1424, allocations: 164.4 kB / 477.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.1424, allocations: 4.375 kB / 477.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.1425, allocations: 4.125 kB / 477.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.1426, allocations: 29.69 kB / 477.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1426, allocations: 4 kB / 477.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.1426, allocations: 4 kB / 477.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1426, allocations: 0 / 477.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.06e-05/0.1427, allocations: 0 / 477.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001661/0.1428, allocations: 145.7 kB / 477.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.085e-05/0.1429, allocations: 22.55 kB / 477.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.091e-05/0.1429, allocations: 12.8 kB / 477.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.1429, allocations: 0 / 477.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.02e-05/0.143, allocations: 68.31 kB / 478 MB, free: 6.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.143, allocations: 0 / 478 MB, free: 6.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001993/0.1432, allocations: 59.41 kB / 478 MB, free: 6.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.888e-05/0.1433, allocations: 85.05 kB / 478.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.668e-05/0.1434, allocations: 89.86 kB / 478.2 MB, free: 5.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.1434, allocations: 25.7 kB / 478.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.183e-05/0.1434, allocations: 80.14 kB / 478.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.1435, allocations: 3.906 kB / 478.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.1435, allocations: 21.83 kB / 478.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1437, allocations: 314.8 kB / 478.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.045e-05/0.1437, allocations: 0 / 478.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-06/0.1437, allocations: 0 / 478.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.161e-05/0.1438, allocations: 60.27 kB / 478.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1438, allocations: 0 / 478.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.079e-05/0.1439, allocations: 67.33 kB / 478.7 MB, free: 5.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.1439, allocations: 45.61 kB / 478.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1439, allocations: 0 / 478.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.144, allocations: 0 / 478.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.083e-06/0.144, allocations: 4 kB / 478.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.144, allocations: 0 / 478.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.144, allocations: 0 / 478.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.144, allocations: 0 / 478.8 MB, free: 5.277 MB / 350.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 9.053e-05/0.1441, allocations: 139.5 kB / 478.9 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.1441, allocations: 3.938 kB / 478.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.912e-05/0.1442, allocations: 11.11 kB / 478.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.1442, allocations: 0 / 478.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1442, allocations: 0 / 478.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1442, allocations: 0 / 478.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.1443, allocations: 149.7 kB / 479.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1443, allocations: 3.938 kB / 479.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.1443, allocations: 0 / 479.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1443, allocations: 0 / 479.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.1443, allocations: 3.984 kB / 479.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1443, allocations: 0 / 479.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1443, allocations: 0 / 479.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.1445, allocations: 94.78 kB / 479.2 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.1445, allocations: 88.97 kB / 479.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.1445, allocations: 4 kB / 479.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.101e-05/0.1446, allocations: 0 / 479.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.238e-05/0.1446, allocations: 0 / 479.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.1446, allocations: 0 / 479.3 MB, free: 4.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.477e-05/0.1446, allocations: 75.28 kB / 479.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1446, allocations: 4.031 kB / 479.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009654/0.1456, allocations: 272 kB / 479.6 MB, free: 4.336 MB / 350.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.001609/0.1472, allocations: 405.7 kB / 480 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.1474, allocations: 59.39 kB / 480.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1474, allocations: 0 / 480.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.444e-05/0.1474, allocations: 55.41 kB / 480.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00017/0.1476, allocations: 11.94 kB / 480.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002159/0.1478, allocations: 85 kB / 480.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.1481, allocations: 0.6729 MB / 480.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.763e-06/0.1481, allocations: 0 / 480.9 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.106e-05/0.1481, allocations: 11.44 kB / 480.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1481, allocations: 0 / 480.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of Templates: time 0.01377/0.1619, allocations: 7.308 MB / 488.2 MB, free: 11.66 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)