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.001106/0.001106, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001164, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 46.09 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 82.83 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1089, allocations: 62.44 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001678/0.1106, allocations: 491 kB / 480.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.1129, allocations: 1.793 MB / 482.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.306e-05/0.1129, allocations: 0 / 482.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.113, allocations: 0 / 482.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.369e-06/0.113, allocations: 3.938 kB / 482.4 MB, free: 2.879 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.0009318/0.1139, allocations: 239.2 kB / 482.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.281e-05/0.114, allocations: 0 / 482.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.587e-05/0.114, allocations: 0 / 482.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.509e-05/0.114, allocations: 4 kB / 482.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.683e-05/0.1141, allocations: 3.938 kB / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-06/0.1141, allocations: 0 / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006193/0.1147, allocations: 399.2 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.582e-06/0.1147, allocations: 4 kB / 483 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.669e-05/0.1147, allocations: 0 / 483 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004484/0.1152, allocations: 307.5 kB / 483.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1152, allocations: 0 / 483.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1152, allocations: 0 / 483.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1152, allocations: 0 / 483.3 MB, free: 1.941 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.0003761/0.1156, allocations: 389.2 kB / 483.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1156, allocations: 8.031 kB / 483.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.047e-05/0.1157, allocations: 30.75 kB / 483.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.278e-05/0.1157, allocations: 8.875 kB / 483.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.435e-05/0.1158, allocations: 160.4 kB / 483.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.1158, allocations: 4.375 kB / 483.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-06/0.1158, allocations: 384 / 483.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.734e-05/0.1159, allocations: 37.81 kB / 484 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-06/0.1159, allocations: 0 / 484 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.1159, allocations: 3.984 kB / 484 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.1159, allocations: 0 / 484 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.542e-05/0.116, allocations: 0 / 484 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001275/0.1161, allocations: 153.7 kB / 484.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.912e-05/0.1161, allocations: 22.52 kB / 484.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.282e-05/0.1162, allocations: 4.859 kB / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.597e-06/0.1162, allocations: 4.094 kB / 484.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.277e-05/0.1162, allocations: 64.19 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1162, allocations: 0 / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001491/0.1164, allocations: 63.41 kB / 484.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.1165, allocations: 81.05 kB / 484.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.201e-05/0.1165, allocations: 93.98 kB / 484.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.1165, allocations: 25.7 kB / 484.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.33e-05/0.1165, allocations: 80.14 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.1166, allocations: 0 / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/0.1166, allocations: 17.7 kB / 484.6 MB, free: 488 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1167, allocations: 318.8 kB / 484.9 MB, free: 160 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.987e-06/0.1167, allocations: 3.938 kB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-06/0.1167, allocations: 8 kB / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.38e-05/0.1168, allocations: 64.33 kB / 484.9 MB, free: 68 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1168, allocations: 0 / 484.9 MB, free: 68 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.675e-05/0.1169, allocations: 59.39 kB / 485 MB, free: 16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.1169, allocations: 37.64 kB / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.1169, allocations: 0 / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.117, allocations: 3.938 kB / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.117, allocations: 0 / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.117, allocations: 0 / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.434e-05/0.117, allocations: 0 / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.117, allocations: 8 kB / 485 MB, free: 15.94 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.075e-05/0.1171, allocations: 135.6 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.1171, allocations: 7.922 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.644e-06/0.1171, allocations: 3.125 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1171, allocations: 4 kB / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1171, allocations: 0 / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.1171, allocations: 0 / 485.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.935e-05/0.1172, allocations: 145.6 kB / 485.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1172, allocations: 0 / 485.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1172, allocations: 0 / 485.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.1172, allocations: 11.92 kB / 485.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.1173, allocations: 4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1173, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1173, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.485e-05/0.1174, allocations: 90.78 kB / 485.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.278e-05/0.1174, allocations: 85.03 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.1174, allocations: 0 / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/0.1174, allocations: 0 / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.007e-05/0.1175, allocations: 4.031 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1175, allocations: 8 kB / 485.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.414e-05/0.1175, allocations: 75.28 kB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1175, allocations: 0 / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.1178, allocations: 63.98 kB / 485.7 MB, free: 15.21 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006448/0.1185, allocations: 0.7257 MB / 486.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.213e-05/0.1186, allocations: 59.34 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1186, allocations: 0 / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.577e-05/0.1186, allocations: 55.5 kB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.1187, allocations: 13.83 kB / 486.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002905/0.119, allocations: 130.6 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.1193, allocations: 0.6767 MB / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.781e-06/0.1193, allocations: 0 / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.043e-05/0.1193, allocations: 11.44 kB / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1193, allocations: 0 / 487.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01784/0.1371, allocations: 2.429 MB / 489.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.296/7.433, allocations: 0.8438 kB / 489.8 MB, free: 11.04 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/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)