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: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000974/0.000974, allocations: 93.92 kB / 16.98 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.001296/0.001297, allocations: 200 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.372/1.372, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 45.92 MB / 344 MB, free: 12.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003125/0.0003126, allocations: 8 kB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1373, allocations: 63.46 MB / 481.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0006973/0.1381, allocations: 222.9 kB / 481.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.1414, allocations: 2.005 MB / 483.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.814e-05/0.1415, allocations: 0 / 483.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.1415, allocations: 3.938 kB / 483.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.1415, allocations: 0 / 483.7 MB, free: 3.074 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.002039/0.1436, allocations: 0.6147 MB / 484.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.562e-05/0.1436, allocations: 7.984 kB / 484.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.675e-05/0.1437, allocations: 0 / 484.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.823e-05/0.1437, allocations: 0 / 484.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.643e-05/0.1437, allocations: 4 kB / 484.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-06/0.1437, allocations: 0 / 484.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002144/0.1459, allocations: 1.272 MB / 485.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.005e-05/0.1459, allocations: 0 / 485.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.007e-05/0.1459, allocations: 33.64 kB / 485.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.1475, allocations: 1.166 MB / 486.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1475, allocations: 0 / 486.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1475, allocations: 0 / 486.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.1475, allocations: 0 / 486.8 MB, free: 15.97 MB / 366.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.001005/0.1486, allocations: 409 kB / 487.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.1486, allocations: 8.031 kB / 487.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.1487, allocations: 30.56 kB / 487.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.1487, allocations: 0 / 487.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.1488, allocations: 167 kB / 487.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1489, allocations: 8 kB / 487.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.1489, allocations: 0 / 487.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.149, allocations: 29.7 kB / 487.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.149, allocations: 4 kB / 487.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.149, allocations: 0 / 487.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.149, allocations: 3.938 kB / 487.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.12e-05/0.1491, allocations: 3.938 kB / 487.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001899/0.1493, allocations: 149.6 kB / 487.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.501e-05/0.1493, allocations: 26.61 kB / 487.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.1493, allocations: 3.984 kB / 487.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.622e-05/0.1494, allocations: 56.27 kB / 487.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1494, allocations: 0 / 487.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002163/0.1496, allocations: 67.39 kB / 487.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.1497, allocations: 77.11 kB / 487.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.788e-05/0.1497, allocations: 93.86 kB / 487.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.1498, allocations: 29.83 kB / 488 MB, free: 14.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.305e-05/0.1498, allocations: 84.14 kB / 488.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.1498, allocations: 4.188 kB / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-06/0.1498, allocations: 0 / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.15, allocations: 314.8 kB / 488.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.009e-05/0.15, allocations: 0 / 488.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.945e-06/0.15, allocations: 4 kB / 488.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.751e-05/0.1501, allocations: 29.66 kB / 488.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1501, allocations: 0 / 488.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.114e-05/0.1502, allocations: 75.39 kB / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.1502, allocations: 29.7 kB / 488.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1502, allocations: 0 / 488.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.1503, allocations: 0 / 488.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.954e-06/0.1503, allocations: 0 / 488.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.1503, allocations: 4 kB / 488.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.898e-05/0.1503, allocations: 0 / 488.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.1503, allocations: 0 / 488.5 MB, free: 14.03 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 0.0001395/0.1505, allocations: 143.4 kB / 488.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.022e-05/0.1505, allocations: 8.031 kB / 488.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.42e-05/0.1505, allocations: 3.125 kB / 488.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1505, allocations: 0 / 488.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1505, allocations: 0 / 488.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.1505, allocations: 0 / 488.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.1507, allocations: 145.7 kB / 488.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1507, allocations: 7.953 kB / 488.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.156e-06/0.1507, allocations: 0 / 488.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1507, allocations: 3.938 kB / 488.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.1507, allocations: 0 / 488.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1507, allocations: 0 / 488.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1507, allocations: 4 kB / 488.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.1509, allocations: 94.77 kB / 488.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.99e-05/0.151, allocations: 85.06 kB / 489 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.151, allocations: 0 / 489 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.151, allocations: 0 / 489 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.182e-05/0.151, allocations: 4 kB / 489 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.151, allocations: 0 / 489 MB, free: 13.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.151e-05/0.1511, allocations: 79.31 kB / 489.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1511, allocations: 0 / 489.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001641/0.1527, allocations: 276 kB / 489.3 MB, free: 13.09 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.00289/0.1556, allocations: 0.929 MB / 490.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001361/0.1558, allocations: 67.34 kB / 490.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.1558, allocations: 0 / 490.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.062e-05/0.1559, allocations: 59.39 kB / 490.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.156, allocations: 3.938 kB / 490.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009104/0.1569, allocations: 160.3 kB / 490.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.1573, allocations: 0.6731 MB / 491.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.205e-06/0.1574, allocations: 0 / 491.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.394e-05/0.1574, allocations: 11.38 kB / 491.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1574, allocations: 4.125 kB / 491.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.1842, allocations: 8.279 MB / 499.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.1844, allocations: 210.9 kB / 499.7 MB, free: 2.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/2.227, allocations: 3.375 kB / 499.7 MB, free: 2.637 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)