Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001296/0.001296, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.225/0.225, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 83.86 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3189, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001573/0.3205, allocations: 494.6 kB / 0.5311 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.3231, allocations: 1.794 MB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.695e-05/0.3232, allocations: 0 / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.777e-05/0.3232, allocations: 0 / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.466e-06/0.3232, allocations: 5.344 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.001023/0.3242, allocations: 231.7 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.666e-05/0.3243, allocations: 1.562 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.031e-05/0.3244, allocations: 5.25 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.758e-05/0.3244, allocations: 5.328 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.728e-05/0.3244, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.941e-06/0.3244, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006466/0.3251, allocations: 408.8 kB / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-06/0.3251, allocations: 0 / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.3251, allocations: 9.375 kB / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004498/0.3256, allocations: 301.5 kB / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3256, allocations: 5.312 kB / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3256, allocations: 0 / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.3256, allocations: 0 / 0.5337 GB, free: 11.04 MB / 398.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.000421/0.326, allocations: 389.2 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3261, allocations: 9.625 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.65e-05/0.3261, allocations: 30.75 kB / 0.5341 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.423e-05/0.3261, allocations: 4.938 kB / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.3263, allocations: 169.7 kB / 0.5343 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.3263, allocations: 384 / 0.5343 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.3263, allocations: 1.75 kB / 0.5343 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.3264, allocations: 36.56 kB / 0.5343 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.3264, allocations: 0 / 0.5343 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.3265, allocations: 0 / 0.5343 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3265, allocations: 3.938 kB / 0.5344 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.933e-05/0.3265, allocations: 1.375 kB / 0.5344 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.3267, allocations: 143.1 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.184e-05/0.3267, allocations: 25.33 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.439e-05/0.3267, allocations: 6.234 kB / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.3268, allocations: 3.984 kB / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/0.3268, allocations: 65.56 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.116e-06/0.3268, allocations: 0 / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001885/0.327, allocations: 67.53 kB / 0.5347 GB, free: 9.949 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.026e-05/0.3271, allocations: 81.23 kB / 0.5347 GB, free: 9.852 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.555e-05/0.3272, allocations: 97.81 kB / 0.5348 GB, free: 9.746 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.3272, allocations: 27.08 kB / 0.5348 GB, free: 9.715 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.3272, allocations: 80.14 kB / 0.5349 GB, free: 9.633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.3273, allocations: 1.375 kB / 0.5349 GB, free: 9.633 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.3273, allocations: 15.08 kB / 0.5349 GB, free: 9.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3274, allocations: 312.2 kB / 0.5352 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-06/0.3275, allocations: 0 / 0.5352 GB, free: 9.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.707e-06/0.3275, allocations: 5.375 kB / 0.5352 GB, free: 9.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.042e-05/0.3275, allocations: 68.33 kB / 0.5353 GB, free: 9.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3275, allocations: 0 / 0.5353 GB, free: 9.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.998e-05/0.3276, allocations: 62.27 kB / 0.5354 GB, free: 9.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.767e-05/0.3277, allocations: 35.14 kB / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3277, allocations: 0 / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.3277, allocations: 1.375 kB / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.3277, allocations: 0 / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3277, allocations: 0 / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.216e-05/0.3277, allocations: 9.469 kB / 0.5354 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.3278, allocations: 0 / 0.5354 GB, free: 9.109 MB / 398.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 9.819e-05/0.3279, allocations: 138.2 kB / 0.5355 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.3279, allocations: 9.297 kB / 0.5356 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.686e-06/0.3279, allocations: 3.125 kB / 0.5356 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3279, allocations: 0 / 0.5356 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3279, allocations: 1.375 kB / 0.5356 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3279, allocations: 0 / 0.5356 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.328, allocations: 147.1 kB / 0.5357 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.328, allocations: 0 / 0.5357 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.328, allocations: 9.312 kB / 0.5357 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3281, allocations: 3.938 kB / 0.5357 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.3281, allocations: 5.359 kB / 0.5357 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.3281, allocations: 0 / 0.5357 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3281, allocations: 3.938 kB / 0.5357 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.992e-05/0.3282, allocations: 85.84 kB / 0.5358 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.476e-05/0.3282, allocations: 85.03 kB / 0.5359 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.3283, allocations: 5.406 kB / 0.5359 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.929e-06/0.3283, allocations: 5.312 kB / 0.5359 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.3283, allocations: 0 / 0.5359 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.3283, allocations: 1.375 kB / 0.5359 GB, free: 8.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.189e-05/0.3283, allocations: 75.28 kB / 0.536 GB, free: 8.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3283, allocations: 0 / 0.536 GB, free: 8.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003292/0.3287, allocations: 68.7 kB / 0.536 GB, free: 8.441 MB / 398.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.0007439/0.3294, allocations: 0.7036 MB / 0.5367 GB, free: 7.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000105/0.3295, allocations: 63.42 kB / 0.5368 GB, free: 7.699 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3296, allocations: 5.531 kB / 0.5368 GB, free: 7.695 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.671e-05/0.3296, allocations: 54.09 kB / 0.5368 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.3297, allocations: 7.797 kB / 0.5368 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000328/0.3301, allocations: 132.8 kB / 0.537 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.3304, allocations: 0.6742 MB / 0.5376 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.484e-06/0.3304, allocations: 7.875 kB / 0.5376 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.892e-05/0.3304, allocations: 11.88 kB / 0.5376 GB, free: 6.762 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3304, allocations: 0 / 0.5376 GB, free: 6.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02555/0.356, allocations: 2.455 MB / 0.54 GB, free: 5.398 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/8.099, allocations: 13.77 kB / 0.5401 GB, free: 5.391 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe 2>&1)