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.0007894/0.0007896, allocations: 99.14 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 45.92 MB / 344.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002746, allocations: 15.94 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1357, allocations: 63.47 MB / 481.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.0006108/0.1364, allocations: 214.9 kB / 481.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003018/0.1394, allocations: 2.048 MB / 483.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.742e-05/0.1394, allocations: 0 / 483.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.257e-05/0.1395, allocations: 0 / 483.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.572e-06/0.1395, allocations: 3.938 kB / 483.9 MB, free: 2.977 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.001699/0.1412, allocations: 0.6305 MB / 484.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.619e-05/0.1412, allocations: 7.984 kB / 484.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.1413, allocations: 0 / 484.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.596e-05/0.1413, allocations: 3.984 kB / 484.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.268e-05/0.1413, allocations: 0 / 484.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.822e-06/0.1413, allocations: 0 / 484.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001869/0.1432, allocations: 1.354 MB / 485.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.114e-06/0.1432, allocations: 0 / 485.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.969e-05/0.1433, allocations: 25.7 kB / 485.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.1446, allocations: 1.162 MB / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.412e-05/0.1447, allocations: 0 / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1447, allocations: 0 / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.1447, allocations: 0 / 487.1 MB, free: 15.79 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.0005188/0.1452, allocations: 405 kB / 487.5 MB, free: 15.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.1453, allocations: 12.03 kB / 487.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.021e-05/0.1453, allocations: 30.56 kB / 487.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.317e-05/0.1453, allocations: 0 / 487.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.452e-05/0.1454, allocations: 163 kB / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.1454, allocations: 4 kB / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-06/0.1455, allocations: 0 / 487.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.421e-05/0.1455, allocations: 33.69 kB / 487.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.1456, allocations: 0 / 487.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.1456, allocations: 0 / 487.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1456, allocations: 0 / 487.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.108e-05/0.1456, allocations: 7.938 kB / 487.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.1457, allocations: 149.6 kB / 487.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.349e-05/0.1458, allocations: 22.52 kB / 487.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.453e-05/0.1458, allocations: 12.94 kB / 487.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.1458, allocations: 0 / 487.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.1459, allocations: 56.27 kB / 488 MB, free: 14.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1459, allocations: 0 / 488 MB, free: 14.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001853/0.1461, allocations: 67.34 kB / 488 MB, free: 14.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.1461, allocations: 81.09 kB / 488.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.6e-05/0.1462, allocations: 93.98 kB / 488.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1462, allocations: 25.7 kB / 488.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.823e-05/0.1462, allocations: 84.14 kB / 488.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.1463, allocations: 4.188 kB / 488.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.434e-06/0.1463, allocations: 0 / 488.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1464, allocations: 318.7 kB / 488.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-06/0.1464, allocations: 4 kB / 488.6 MB, free: 14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.639e-06/0.1464, allocations: 0 / 488.6 MB, free: 14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.312e-05/0.1465, allocations: 37.77 kB / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.1465, allocations: 0 / 488.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.227e-05/0.1465, allocations: 67.33 kB / 488.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.1466, allocations: 29.7 kB / 488.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1466, allocations: 0 / 488.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.437e-06/0.1466, allocations: 0 / 488.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.1466, allocations: 0 / 488.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.1466, allocations: 0 / 488.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.027e-05/0.1466, allocations: 4 kB / 488.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.1467, allocations: 4 kB / 488.8 MB, free: 13.84 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.0001011/0.1468, allocations: 143.5 kB / 488.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-06/0.1468, allocations: 4 kB / 488.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.132e-05/0.1468, allocations: 11.11 kB / 488.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1468, allocations: 0 / 488.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.1468, allocations: 0 / 488.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1468, allocations: 0 / 488.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.74e-05/0.1469, allocations: 145.6 kB / 489.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1469, allocations: 0 / 489.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1469, allocations: 4 kB / 489.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.1469, allocations: 0 / 489.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.147, allocations: 7.984 kB / 489.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.147, allocations: 3.938 kB / 489.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.147, allocations: 0 / 489.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.296e-05/0.1471, allocations: 90.78 kB / 489.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/0.1471, allocations: 89.03 kB / 489.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.1471, allocations: 0 / 489.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.1471, allocations: 0 / 489.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.229e-05/0.1472, allocations: 8.031 kB / 489.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.1472, allocations: 0 / 489.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.159e-05/0.1472, allocations: 75.28 kB / 489.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1472, allocations: 0 / 489.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007935/0.148, allocations: 268 kB / 489.6 MB, free: 12.9 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.001508/0.1495, allocations: 0.9383 MB / 490.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.673e-05/0.1496, allocations: 55.41 kB / 490.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1496, allocations: 0 / 490.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.031e-05/0.1497, allocations: 59.39 kB / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.1498, allocations: 0 / 490.6 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004555/0.1503, allocations: 160.3 kB / 490.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004223/0.1507, allocations: 0.6731 MB / 491.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.992e-06/0.1507, allocations: 4.125 kB / 491.5 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.34e-05/0.1507, allocations: 11.38 kB / 491.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1507, allocations: 0 / 491.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.1773, allocations: 8.278 MB / 499.8 MB, free: 2.699 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/0.1776, allocations: 218.5 kB / 500 MB, free: 2.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/2.241, allocations: 0 / 500 MB, free: 2.453 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)