Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.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.TestPolynomials,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008413/0.0008411, allocations: 101.3 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.000888/0.0008883, allocations: 191.8 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.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2154/0.2154, allocations: 45.91 MB / 344.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002992/0.0002992, allocations: 4 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 63.47 MB / 481.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0006235/0.1344, allocations: 218.9 kB / 481.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.1367, allocations: 1.705 MB / 483.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.529e-05/0.1368, allocations: 0 / 483.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.022e-05/0.1368, allocations: 0 / 483.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.665e-06/0.1368, allocations: 3.938 kB / 483.6 MB, free: 3.309 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:120:3-169:18:writable] Warning: Pure function ‘ModelicaTest.Math.Polynomials‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008516/0.1377, allocations: 187.5 kB / 483.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.831e-05/0.1377, allocations: 8 kB / 483.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.942e-05/0.1377, allocations: 0 / 483.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.597e-05/0.1378, allocations: 0 / 483.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.598e-05/0.1378, allocations: 0 / 483.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.1378, allocations: 0 / 483.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005673/0.1384, allocations: 375.2 kB / 484.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.119e-06/0.1384, allocations: 0 / 484.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.577e-05/0.1384, allocations: 29.7 kB / 484.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002947/0.1387, allocations: 203.7 kB / 484.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1387, allocations: 0 / 484.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1387, allocations: 4 kB / 484.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1388, allocations: 0 / 484.3 MB, free: 2.512 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.0003508/0.1391, allocations: 385.1 kB / 484.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1392, allocations: 11.97 kB / 484.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.984e-05/0.1392, allocations: 34.56 kB / 484.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.043e-05/0.1392, allocations: 0 / 484.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.1393, allocations: 171 kB / 484.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.1393, allocations: 4 kB / 484.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.562e-06/0.1394, allocations: 0 / 484.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.85e-05/0.1394, allocations: 29.7 kB / 485 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.1395, allocations: 0 / 485 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.1395, allocations: 4 kB / 485 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1395, allocations: 0 / 485 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.682e-05/0.1395, allocations: 0 / 485 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.1396, allocations: 149.6 kB / 485.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.288e-05/0.1397, allocations: 22.55 kB / 485.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.179e-05/0.1397, allocations: 8.859 kB / 485.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-06/0.1397, allocations: 4 kB / 485.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.1398, allocations: 56.27 kB / 485.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.1398, allocations: 4.062 kB / 485.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001593/0.1399, allocations: 63.33 kB / 485.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.14, allocations: 81.11 kB / 485.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.423e-05/0.14, allocations: 89.86 kB / 485.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.1401, allocations: 25.7 kB / 485.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.903e-05/0.1401, allocations: 92.25 kB / 485.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.1401, allocations: 0 / 485.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-06/0.1401, allocations: 0 / 485.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1403, allocations: 314.8 kB / 485.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.061e-05/0.1403, allocations: 4 kB / 485.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.077e-06/0.1403, allocations: 3.938 kB / 485.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.064e-05/0.1403, allocations: 29.66 kB / 485.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1403, allocations: 0 / 485.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.234e-05/0.1404, allocations: 67.45 kB / 486 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.1404, allocations: 29.7 kB / 486 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1405, allocations: 4 kB / 486 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.1405, allocations: 0 / 486 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.315e-06/0.1405, allocations: 3.938 kB / 486 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1405, allocations: 0 / 486 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.1405, allocations: 4 kB / 486 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.1405, allocations: 0 / 486 MB, free: 0.582 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.397e-05/0.1406, allocations: 143.5 kB / 486.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.855e-06/0.1406, allocations: 7.938 kB / 486.1 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.694e-06/0.1406, allocations: 3.125 kB / 486.2 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1406, allocations: 0 / 486.2 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1406, allocations: 0 / 486.2 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1407, allocations: 0 / 486.2 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.055e-05/0.1408, allocations: 149.7 kB / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1408, allocations: 3.953 kB / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1408, allocations: 0 / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1408, allocations: 0 / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.1408, allocations: 0 / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1408, allocations: 0 / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1408, allocations: 8 kB / 486.3 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.609e-05/0.1409, allocations: 86.83 kB / 486.4 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.867e-05/0.1409, allocations: 81.06 kB / 486.5 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.141, allocations: 7.984 kB / 486.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.29e-05/0.141, allocations: 4 kB / 486.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.615e-05/0.141, allocations: 0 / 486.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.141, allocations: 4 kB / 486.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.967e-05/0.1411, allocations: 79.31 kB / 486.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1411, allocations: 0 / 486.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1414, allocations: 63.94 kB / 486.6 MB, free: 15.85 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.0006945/0.1421, allocations: 0.7299 MB / 487.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.012e-05/0.1422, allocations: 59.34 kB / 487.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1422, allocations: 0 / 487.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.1422, allocations: 55.41 kB / 487.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.1424, allocations: 14.12 kB / 487.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003359/0.1427, allocations: 128.5 kB / 487.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.143, allocations: 0.6731 MB / 488.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.143, allocations: 4 kB / 488.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.36e-05/0.143, allocations: 7.438 kB / 488.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.143, allocations: 0 / 488.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0144/0.1574, allocations: 2.173 MB / 490.5 MB, free: 11.99 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002632/0.1577, allocations: 212.9 kB / 490.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/1.986, allocations: 2.875 kB / 490.7 MB, free: 11.75 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials_res.mat does not exist to compare? outputFormat=mat