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.0009752/0.0009792, allocations: 96.62 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 207.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 45.93 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002919, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 63.46 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.0006393/0.1223, allocations: 214.9 kB / 481.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002845/0.1251, allocations: 1.712 MB / 483.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.852e-05/0.1251, allocations: 0 / 483.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.187e-05/0.1252, allocations: 0 / 483.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.759e-06/0.1252, allocations: 0 / 483.4 MB, free: 3.344 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.00093/0.1261, allocations: 183.5 kB / 483.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.55e-05/0.1262, allocations: 0 / 483.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.53e-05/0.1262, allocations: 0 / 483.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.035e-05/0.1262, allocations: 3.984 kB / 483.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.982e-05/0.1263, allocations: 0 / 483.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.642e-06/0.1263, allocations: 4 kB / 483.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005737/0.1269, allocations: 351.3 kB / 484 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.953e-06/0.1269, allocations: 0 / 484 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.507e-05/0.1269, allocations: 25.7 kB / 484 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003351/0.1273, allocations: 215.6 kB / 484.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1273, allocations: 0 / 484.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1273, allocations: 0 / 484.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1273, allocations: 3.938 kB / 484.2 MB, free: 2.566 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.0004971/0.1278, allocations: 381.1 kB / 484.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.1278, allocations: 8.031 kB / 484.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.1279, allocations: 30.56 kB / 484.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.466e-05/0.1279, allocations: 0 / 484.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.1281, allocations: 167 kB / 484.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1281, allocations: 8 kB / 484.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.1281, allocations: 4 kB / 484.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/0.1282, allocations: 29.64 kB / 484.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.1282, allocations: 0 / 484.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.1282, allocations: 0 / 484.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.1282, allocations: 4 kB / 484.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.833e-05/0.1283, allocations: 0 / 484.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/0.1284, allocations: 153.6 kB / 485 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.695e-05/0.1285, allocations: 22.61 kB / 485 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.879e-06/0.1285, allocations: 0 / 485 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.773e-05/0.1286, allocations: 60.2 kB / 485.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1286, allocations: 0 / 485.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002147/0.1288, allocations: 67.39 kB / 485.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.1289, allocations: 81.11 kB / 485.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.761e-05/0.1289, allocations: 89.86 kB / 485.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.129, allocations: 25.7 kB / 485.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.129, allocations: 88.27 kB / 485.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.129, allocations: 0 / 485.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.129, allocations: 0 / 485.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1292, allocations: 310.8 kB / 485.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.426e-06/0.1292, allocations: 0 / 485.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.217e-06/0.1292, allocations: 0 / 485.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.856e-05/0.1292, allocations: 29.7 kB / 485.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1292, allocations: 3.953 kB / 485.7 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.352e-05/0.1293, allocations: 75.39 kB / 485.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.1294, allocations: 29.7 kB / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.1294, allocations: 0 / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.1294, allocations: 0 / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.1294, allocations: 0 / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.1294, allocations: 0 / 485.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.1294, allocations: 4 kB / 485.8 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.1294, allocations: 0 / 485.8 MB, free: 0.6641 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 0.0001007/0.1295, allocations: 135.5 kB / 486 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.1296, allocations: 15.89 kB / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-06/0.1296, allocations: 3.125 kB / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1296, allocations: 0 / 486 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1296, allocations: 3.938 kB / 486 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.1296, allocations: 0 / 486 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.1297, allocations: 141.7 kB / 486.1 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1297, allocations: 4 kB / 486.1 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-06/0.1297, allocations: 7.938 kB / 486.1 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.1297, allocations: 0 / 486.1 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.1297, allocations: 0 / 486.1 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1297, allocations: 0 / 486.1 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1298, allocations: 4 kB / 486.1 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.329e-05/0.1298, allocations: 98.77 kB / 486.2 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.1299, allocations: 85.03 kB / 486.3 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.1299, allocations: 3.953 kB / 486.3 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.848e-06/0.1299, allocations: 4 kB / 486.3 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.13, allocations: 0 / 486.3 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.13, allocations: 0 / 486.3 MB, free: 64 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.568e-05/0.13, allocations: 79.31 kB / 486.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.13, allocations: 0 / 486.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.1303, allocations: 63.98 kB / 486.5 MB, free: 15.92 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.0008823/0.1312, allocations: 0.7235 MB / 487.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.1314, allocations: 59.41 kB / 487.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1314, allocations: 0 / 487.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/0.1314, allocations: 55.41 kB / 487.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.917e-05/0.1315, allocations: 11.83 kB / 487.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003896/0.1319, allocations: 136.5 kB / 487.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.1323, allocations: 0.6731 MB / 488.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.047e-06/0.1323, allocations: 0 / 488.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.634e-05/0.1323, allocations: 11.44 kB / 488.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1323, allocations: 0 / 488.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0136/0.1459, allocations: 2.157 MB / 490.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.1462, allocations: 211.3 kB / 490.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/1.992, allocations: 4 kB / 490.5 MB, free: 11.83 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