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.0008114/0.0008115, allocations: 93.03 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009368/0.0009368, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246 MB, free: 10.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2051/0.2051, allocations: 45.92 MB / 344.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000258/0.0002581, allocations: 11.94 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1356, allocations: 63.48 MB / 481.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0006695/0.1363, allocations: 214.9 kB / 481.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.1384, allocations: 1.494 MB / 483.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.728e-05/0.1385, allocations: 7.938 kB / 483.3 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.373e-05/0.1385, allocations: 0 / 483.3 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.334e-06/0.1385, allocations: 4 kB / 483.4 MB, free: 3.5 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.0008011/0.1393, allocations: 199.6 kB / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.393e-05/0.1394, allocations: 7.922 kB / 483.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.349e-05/0.1394, allocations: 0 / 483.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.1394, allocations: 0 / 483.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.929e-05/0.1395, allocations: 0 / 483.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.051e-06/0.1395, allocations: 0 / 483.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009713/0.1404, allocations: 0.6831 MB / 484.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.011e-06/0.1405, allocations: 0 / 484.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.1405, allocations: 25.7 kB / 484.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004756/0.141, allocations: 447.3 kB / 484.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.141, allocations: 0 / 484.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.141, allocations: 0 / 484.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.141, allocations: 0 / 484.7 MB, free: 2.145 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.0004469/0.1415, allocations: 361.1 kB / 485.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1415, allocations: 8.031 kB / 485.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.546e-05/0.1416, allocations: 30.56 kB / 485.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.514e-05/0.1416, allocations: 4 kB / 485.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.1417, allocations: 167 kB / 485.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.1417, allocations: 4 kB / 485.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.1418, allocations: 7.938 kB / 485.3 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.973e-05/0.1419, allocations: 29.64 kB / 485.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1419, allocations: 0 / 485.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.1419, allocations: 7.984 kB / 485.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1419, allocations: 0 / 485.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.806e-05/0.1419, allocations: 3.938 kB / 485.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.1421, allocations: 153.6 kB / 485.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.005e-05/0.1421, allocations: 22.59 kB / 485.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.1422, allocations: 8.797 kB / 485.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.653e-06/0.1422, allocations: 0 / 485.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.436e-05/0.1422, allocations: 60.33 kB / 485.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1422, allocations: 0 / 485.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.1424, allocations: 63.52 kB / 485.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.1425, allocations: 85.11 kB / 485.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.27e-05/0.1426, allocations: 89.86 kB / 485.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.1426, allocations: 25.7 kB / 485.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.266e-05/0.1426, allocations: 80.14 kB / 485.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.1426, allocations: 0 / 485.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-06/0.1427, allocations: 0 / 485.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1428, allocations: 310.8 kB / 486.2 MB, free: 420 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.157e-05/0.1428, allocations: 7.938 kB / 486.2 MB, free: 412 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.1428, allocations: 8 kB / 486.2 MB, free: 404 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.1429, allocations: 29.66 kB / 486.2 MB, free: 368 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1429, allocations: 0 / 486.2 MB, free: 368 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.993e-05/0.1429, allocations: 63.39 kB / 486.3 MB, free: 292 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.143, allocations: 29.7 kB / 486.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.143, allocations: 0 / 486.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.143, allocations: 4 kB / 486.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.143, allocations: 0 / 486.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.143, allocations: 0 / 486.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.975e-05/0.1431, allocations: 4.094 kB / 486.3 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-06/0.1431, allocations: 0 / 486.3 MB, free: 248 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 0.0001078/0.1432, allocations: 143.5 kB / 486.5 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/0.1432, allocations: 7.906 kB / 486.5 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.339e-05/0.1432, allocations: 3.125 kB / 486.5 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1432, allocations: 0 / 486.5 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.1432, allocations: 0 / 486.5 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.1433, allocations: 3.938 kB / 486.5 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.1434, allocations: 149.7 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.1434, allocations: 11.89 kB / 486.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-06/0.1434, allocations: 3.984 kB / 486.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1434, allocations: 0 / 486.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.1435, allocations: 0 / 486.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1435, allocations: 0 / 486.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1435, allocations: 0 / 486.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.1436, allocations: 86.84 kB / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.694e-05/0.1436, allocations: 85.05 kB / 486.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.1437, allocations: 11.97 kB / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-06/0.1437, allocations: 0 / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.148e-05/0.1437, allocations: 0 / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.1437, allocations: 0 / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.549e-05/0.1438, allocations: 75.28 kB / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1438, allocations: 0 / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004525/0.1442, allocations: 124.3 kB / 487 MB, free: 15.45 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.001039/0.1453, allocations: 0.6991 MB / 487.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.1454, allocations: 63.44 kB / 487.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1454, allocations: 4 kB / 487.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.262e-05/0.1454, allocations: 51.41 kB / 487.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.1456, allocations: 4 kB / 487.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003637/0.1459, allocations: 132.3 kB / 488 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.1462, allocations: 0.6731 MB / 488.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.472e-06/0.1462, allocations: 0 / 488.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.273e-05/0.1463, allocations: 7.562 kB / 488.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1463, allocations: 4 kB / 488.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.1634, allocations: 4.729 MB / 493.4 MB, free: 9.059 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.1637, allocations: 206.6 kB / 493.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.015, allocations: 7.438 kB / 493.6 MB, free: 8.816 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)