Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 100.6 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.001638/0.001638, allocations: 201.9 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.466/1.466, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.222/0.222, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003857, allocations: 11.98 kB / 418 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1419, allocations: 63.46 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.000561/0.1425, allocations: 218.9 kB / 481.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.1443, allocations: 1.494 MB / 483.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.353e-05/0.1444, allocations: 0 / 483.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.167e-06/0.1444, allocations: 0 / 483.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-06/0.1444, allocations: 4 kB / 483.2 MB, free: 3.547 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:576:3-610:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices3‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007168/0.1451, allocations: 195.5 kB / 483.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.685e-05/0.1451, allocations: 0 / 483.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.894e-05/0.1452, allocations: 0 / 483.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.4e-05/0.1452, allocations: 4 kB / 483.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.798e-05/0.1452, allocations: 7.969 kB / 483.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.499e-06/0.1452, allocations: 0 / 483.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008558/0.1461, allocations: 0.6558 MB / 484.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.119e-06/0.1461, allocations: 0 / 484.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.1462, allocations: 25.7 kB / 484.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004378/0.1466, allocations: 459.3 kB / 484.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1466, allocations: 0 / 484.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1466, allocations: 0 / 484.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1466, allocations: 0 / 484.6 MB, free: 2.207 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.0003575/0.147, allocations: 361.1 kB / 484.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.147, allocations: 12.03 kB / 484.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.07e-05/0.1471, allocations: 34.56 kB / 485 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.943e-05/0.1471, allocations: 0 / 485 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.299e-05/0.1472, allocations: 163 kB / 485.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.1472, allocations: 0 / 485.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.753e-06/0.1472, allocations: 3.938 kB / 485.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.229e-05/0.1473, allocations: 33.69 kB / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.728e-06/0.1473, allocations: 4 kB / 485.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.1473, allocations: 4 kB / 485.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1473, allocations: 0 / 485.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.841e-05/0.1474, allocations: 4 kB / 485.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001186/0.1475, allocations: 149.6 kB / 485.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.807e-05/0.1475, allocations: 22.58 kB / 485.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-06/0.1475, allocations: 3.938 kB / 485.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/0.1476, allocations: 68.34 kB / 485.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.1476, allocations: 0 / 485.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001543/0.1478, allocations: 59.41 kB / 485.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.1478, allocations: 77.11 kB / 485.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.059e-05/0.1479, allocations: 93.86 kB / 485.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.1479, allocations: 25.7 kB / 485.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.764e-05/0.1479, allocations: 84.08 kB / 485.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.1479, allocations: 3.984 kB / 485.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.304e-06/0.1479, allocations: 0 / 485.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1481, allocations: 319 kB / 486 MB, free: 484 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.682e-06/0.1481, allocations: 0 / 486 MB, free: 484 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-06/0.1481, allocations: 3.938 kB / 486.1 MB, free: 480 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.167e-05/0.1481, allocations: 25.7 kB / 486.1 MB, free: 448 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.1482, allocations: 7.953 kB / 486.1 MB, free: 440 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.984e-05/0.1482, allocations: 55.41 kB / 486.1 MB, free: 372 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.1483, allocations: 41.69 kB / 486.2 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.1483, allocations: 0 / 486.2 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.1483, allocations: 4.094 kB / 486.2 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1483, allocations: 0 / 486.2 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.1483, allocations: 0 / 486.2 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/0.1483, allocations: 0 / 486.2 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.1483, allocations: 0 / 486.2 MB, free: 320 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.699e-05/0.1484, allocations: 135.5 kB / 486.3 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.1485, allocations: 7.859 kB / 486.3 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.418e-06/0.1485, allocations: 3.125 kB / 486.3 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1485, allocations: 0 / 486.3 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.1485, allocations: 11.98 kB / 486.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1485, allocations: 0 / 486.3 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.1487, allocations: 141.7 kB / 486.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1487, allocations: 0 / 486.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-06/0.1487, allocations: 7.891 kB / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1487, allocations: 0 / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.1487, allocations: 4 kB / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1488, allocations: 3.938 kB / 486.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1488, allocations: 0 / 486.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.1489, allocations: 94.81 kB / 486.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.085e-05/0.1489, allocations: 81.11 kB / 486.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.1489, allocations: 3.953 kB / 486.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.038e-05/0.149, allocations: 3.984 kB / 486.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.862e-05/0.149, allocations: 4 kB / 486.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.149, allocations: 0 / 486.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.29e-05/0.149, allocations: 75.28 kB / 486.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.149, allocations: 4 kB / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005371/0.1496, allocations: 116.3 kB / 486.9 MB, free: 15.52 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.00103/0.1506, allocations: 0.7151 MB / 487.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001076/0.1507, allocations: 59.39 kB / 487.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1508, allocations: 0 / 487.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.423e-05/0.1508, allocations: 55.41 kB / 487.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.251e-05/0.1509, allocations: 3.953 kB / 487.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004214/0.1513, allocations: 136.4 kB / 487.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.1517, allocations: 0.6731 MB / 488.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.252e-06/0.1517, allocations: 0 / 488.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.532e-05/0.1517, allocations: 11.44 kB / 488.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1517, allocations: 0 / 488.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01803/0.1698, allocations: 4.722 MB / 493.2 MB, free: 9.121 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.17, allocations: 204.7 kB / 493.4 MB, free: 8.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/1.997, allocations: 3.125 kB / 493.4 MB, free: 8.883 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe 2>&1)