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.001063/0.001063, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001081/0.00108, allocations: 192 kB / 18.56 MB, free: 4.434 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.317/1.317, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.2041/0.2041, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 64.41 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.119, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001672/0.1207, allocations: 498.9 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.1229, allocations: 1.754 MB / 471.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.364e-05/0.123, allocations: 0 / 471.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.123, allocations: 0 / 471.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.481e-06/0.123, allocations: 0 / 471.6 MB, free: 12.03 MB / 350.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.0008488/0.1239, allocations: 223.3 kB / 471.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.793e-05/0.1239, allocations: 4 kB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.102e-05/0.124, allocations: 15.97 kB / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.183e-05/0.124, allocations: 0 / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.38e-05/0.124, allocations: 0 / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.124, allocations: 0 / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006046/0.1246, allocations: 395.2 kB / 472.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.258e-06/0.1246, allocations: 7.922 kB / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.843e-05/0.1247, allocations: 0 / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.1251, allocations: 303.4 kB / 472.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1251, allocations: 3.938 kB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1251, allocations: 4 kB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.1251, allocations: 0 / 472.5 MB, free: 11.09 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.0003464/0.1255, allocations: 389.2 kB / 472.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1255, allocations: 12.03 kB / 472.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.94e-05/0.1255, allocations: 30.75 kB / 472.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.33e-05/0.1256, allocations: 0.9375 kB / 472.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.197e-05/0.1257, allocations: 164.4 kB / 473.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.1257, allocations: 384 / 473.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-06/0.1257, allocations: 4.375 kB / 473.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.341e-05/0.1258, allocations: 41.77 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.1258, allocations: 0 / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.1258, allocations: 0 / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.1258, allocations: 0 / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.795e-05/0.1258, allocations: 4 kB / 473.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001344/0.126, allocations: 145.7 kB / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.673e-05/0.126, allocations: 18.61 kB / 473.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.339e-05/0.126, allocations: 4.859 kB / 473.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.126, allocations: 7.938 kB / 473.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/0.1261, allocations: 64.2 kB / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.1261, allocations: 0 / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001527/0.1263, allocations: 63.45 kB / 473.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1263, allocations: 77.11 kB / 473.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.396e-05/0.1264, allocations: 93.86 kB / 473.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.1264, allocations: 25.7 kB / 473.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.799e-05/0.1264, allocations: 84.27 kB / 473.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.1264, allocations: 4 kB / 473.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.412e-05/0.1265, allocations: 9.719 kB / 473.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.1266, allocations: 314.8 kB / 474.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-06/0.1266, allocations: 0 / 474.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.895e-06/0.1266, allocations: 3.938 kB / 474.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.623e-05/0.1266, allocations: 64.25 kB / 474.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.1267, allocations: 0 / 474.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.669e-05/0.1267, allocations: 67.47 kB / 474.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.1268, allocations: 33.64 kB / 474.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.1268, allocations: 0 / 474.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.1268, allocations: 0 / 474.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.395e-06/0.1268, allocations: 0 / 474.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1268, allocations: 7.938 kB / 474.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.529e-05/0.1268, allocations: 3.984 kB / 474.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.1268, allocations: 0 / 474.2 MB, free: 9.105 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.811e-05/0.1269, allocations: 135.5 kB / 474.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.027e-05/0.127, allocations: 15.81 kB / 474.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.496e-05/0.127, allocations: 3.125 kB / 474.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.127, allocations: 3.938 kB / 474.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.127, allocations: 0 / 474.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.127, allocations: 0 / 474.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.383e-05/0.1271, allocations: 153.7 kB / 474.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1271, allocations: 4 kB / 474.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1271, allocations: 0 / 474.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1271, allocations: 3.938 kB / 474.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-06/0.1271, allocations: 0 / 474.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1271, allocations: 4 kB / 474.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1271, allocations: 0 / 474.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.804e-05/0.1272, allocations: 94.81 kB / 474.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.907e-05/0.1273, allocations: 81.05 kB / 474.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1273, allocations: 4 kB / 474.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-06/0.1273, allocations: 0 / 474.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.087e-05/0.1273, allocations: 0 / 474.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.1273, allocations: 0 / 474.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.27e-05/0.1274, allocations: 79.31 kB / 474.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1274, allocations: 0 / 474.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002873/0.1276, allocations: 63.98 kB / 474.9 MB, free: 8.363 MB / 350.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.0007834/0.1284, allocations: 0.7194 MB / 475.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.19e-05/0.1285, allocations: 67.41 kB / 475.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1286, allocations: 0 / 475.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.008e-05/0.1286, allocations: 59.33 kB / 475.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.1287, allocations: 7.938 kB / 475.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002988/0.129, allocations: 134.6 kB / 475.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.1292, allocations: 0.669 MB / 476.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.871e-06/0.1292, allocations: 0 / 476.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.129e-05/0.1293, allocations: 7.438 kB / 476.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1293, allocations: 0 / 476.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.1502, allocations: 2.432 MB / 479 MB, free: 4.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.254/9.404, allocations: 1.031 kB / 479 MB, free: 4.199 MB / 350.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)