Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 114.4 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2064/0.2064, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3843, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001838/0.3862, allocations: 494.5 kB / 0.5189 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002573/0.3888, allocations: 1.751 MB / 0.5206 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.09e-05/0.3889, allocations: 0 / 0.5206 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.364e-05/0.3889, allocations: 0 / 0.5206 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.931e-06/0.3889, allocations: 1.125 kB / 0.5206 GB, free: 1.742 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.001013/0.3899, allocations: 228.1 kB / 0.5208 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.056e-05/0.39, allocations: 1.531 kB / 0.5208 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.48e-05/0.39, allocations: 2.078 kB / 0.5208 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.3901, allocations: 0 / 0.5208 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.723e-05/0.3901, allocations: 2.062 kB / 0.5208 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.973e-06/0.3901, allocations: 0 / 0.5208 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007338/0.3908, allocations: 409.9 kB / 0.5212 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.787e-06/0.3909, allocations: 4 kB / 0.5212 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.122e-05/0.3909, allocations: 9.922 kB / 0.5212 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005427/0.3914, allocations: 302.1 kB / 0.5215 GB, free: 1.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3914, allocations: 1.594 kB / 0.5215 GB, free: 1.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3915, allocations: 0 / 0.5215 GB, free: 1.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3915, allocations: 0 / 0.5215 GB, free: 1.438 MB / 382.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.0003905/0.3919, allocations: 383.9 kB / 0.5219 GB, free: 1.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.3919, allocations: 9.766 kB / 0.5219 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.129e-05/0.3919, allocations: 31.94 kB / 0.5219 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.392, allocations: 4.938 kB / 0.5219 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.584e-05/0.392, allocations: 165.9 kB / 0.5221 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3921, allocations: 5.484 kB / 0.5221 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.3921, allocations: 5.312 kB / 0.5221 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.087e-05/0.3922, allocations: 33.59 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3922, allocations: 0 / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.3922, allocations: 1.094 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3922, allocations: 0 / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.95e-05/0.3922, allocations: 1.906 kB / 0.5221 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001113/0.3924, allocations: 152.2 kB / 0.5223 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.071e-05/0.3924, allocations: 21.3 kB / 0.5223 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.562e-05/0.3924, allocations: 9.922 kB / 0.5223 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.3924, allocations: 1.984 kB / 0.5223 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.3925, allocations: 61.42 kB / 0.5224 GB, free: 448 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.3925, allocations: 0 / 0.5224 GB, free: 448 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001672/0.3927, allocations: 62.09 kB / 0.5224 GB, free: 384 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.3927, allocations: 82.11 kB / 0.5225 GB, free: 284 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.243e-05/0.3927, allocations: 98.41 kB / 0.5226 GB, free: 176 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.3928, allocations: 26.95 kB / 0.5226 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.304e-05/0.3928, allocations: 80.14 kB / 0.5227 GB, free: 60 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.3928, allocations: 0 / 0.5227 GB, free: 60 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.538e-05/0.3928, allocations: 13.77 kB / 0.5227 GB, free: 44 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.393, allocations: 311.4 kB / 0.523 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.393, allocations: 5 kB / 0.523 GB, free: 15.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-06/0.393, allocations: 6.422 kB / 0.523 GB, free: 15.72 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.502e-05/0.393, allocations: 63.25 kB / 0.5231 GB, free: 15.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3931, allocations: 1.156 kB / 0.5231 GB, free: 15.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.755e-05/0.3931, allocations: 64.34 kB / 0.5231 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.3932, allocations: 38.52 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3932, allocations: 0 / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3932, allocations: 1.609 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.3932, allocations: 0 / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3932, allocations: 4.703 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.3932, allocations: 1.156 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.3933, allocations: 1.219 kB / 0.5232 GB, free: 15.54 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 8.541e-05/0.3933, allocations: 139 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.098e-05/0.3934, allocations: 5.781 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.087e-06/0.3934, allocations: 3.125 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3934, allocations: 0.5625 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3934, allocations: 1.094 kB / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3934, allocations: 0 / 0.5233 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.923e-05/0.3935, allocations: 154.3 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.3935, allocations: 0 / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3935, allocations: 0 / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3935, allocations: 5.953 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.3935, allocations: 0 / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.3935, allocations: 1.219 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3935, allocations: 0.9375 kB / 0.5235 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.709e-05/0.3936, allocations: 88.89 kB / 0.5236 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.3937, allocations: 89.64 kB / 0.5236 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.3937, allocations: 1.25 kB / 0.5236 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.3937, allocations: 1.781 kB / 0.5236 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.3937, allocations: 0 / 0.5236 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.3937, allocations: 9.141 kB / 0.5237 GB, free: 14.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.666e-05/0.3938, allocations: 80.11 kB / 0.5237 GB, free: 14.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3938, allocations: 1.094 kB / 0.5237 GB, free: 14.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000349/0.3941, allocations: 66.89 kB / 0.5238 GB, free: 14.88 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.0007176/0.3949, allocations: 0.7224 MB / 0.5245 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.809e-05/0.395, allocations: 66.55 kB / 0.5246 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.395, allocations: 0 / 0.5246 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.242e-05/0.395, allocations: 59.62 kB / 0.5246 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.3952, allocations: 6.375 kB / 0.5246 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003378/0.3955, allocations: 126.4 kB / 0.5247 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.3957, allocations: 0.6741 MB / 0.5254 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.204e-06/0.3958, allocations: 1.594 kB / 0.5254 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.62e-05/0.3958, allocations: 7.438 kB / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3958, allocations: 0 / 0.5254 GB, free: 13.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.414, allocations: 2.463 MB / 0.5278 GB, free: 12.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/8.026, allocations: 2.25 kB / 0.5278 GB, free: 12.39 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1)