Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial",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.0006716/0.0006716, allocations: 98.11 kB / 15.36 MB, free: 0.7305 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.0007114/0.0007114, allocations: 173.2 kB / 16.27 MB, free: 6.664 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.192/1.192, allocations: 223.2 MB / 240.3 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001603/0.001603, allocations: 266.6 kB / 291.7 MB, free: 1.812 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8497/0.8497, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003674, allocations: 14.69 kB / 0.5988 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1252, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.0005781/0.1258, allocations: 310 kB / 0.6855 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001942/0.1261, allocations: 37 kB / 0.6856 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.015e-06/0.1261, allocations: 0 / 0.6856 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.002e-05/0.1261, allocations: 0 / 0.6856 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.222e-06/0.1261, allocations: 0.8125 kB / 0.6856 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.1263, allocations: 15.92 kB / 0.6856 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 2.952e-05/0.1263, allocations: 4.625 kB / 0.6856 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.1264, allocations: 0 / 0.6856 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.422e-05/0.1264, allocations: 4.594 kB / 0.6856 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.499e-05/0.1264, allocations: 5.875 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-06/0.1265, allocations: 0 / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.554e-05/0.1265, allocations: 27.91 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.693e-06/0.1266, allocations: 0 / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.473e-05/0.1266, allocations: 25.7 kB / 0.6857 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.977e-05/0.1267, allocations: 22.53 kB / 0.6857 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.1267, allocations: 0 / 0.6857 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1267, allocations: 0 / 0.6857 GB, free: 14.54 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.1267, allocations: 0 / 0.6857 GB, free: 14.54 MB / 494.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.0002285/0.1269, allocations: 309.4 kB / 0.686 GB, free: 14.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.127, allocations: 12.09 kB / 0.686 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.709e-05/0.127, allocations: 31.38 kB / 0.686 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.687e-05/0.127, allocations: 0.9375 kB / 0.686 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.191e-05/0.1271, allocations: 161 kB / 0.6862 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-06/0.1271, allocations: 384 / 0.6862 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-06/0.1271, allocations: 1.094 kB / 0.6862 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.603e-05/0.1272, allocations: 43.33 kB / 0.6862 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-06/0.1272, allocations: 3.938 kB / 0.6862 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.1272, allocations: 3.984 kB / 0.6862 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1272, allocations: 0.5625 kB / 0.6862 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.759e-05/0.1273, allocations: 4.625 kB / 0.6862 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.1274, allocations: 147.6 kB / 0.6864 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.171e-05/0.1274, allocations: 18.58 kB / 0.6864 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.647e-05/0.1274, allocations: 8.953 kB / 0.6864 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.1275, allocations: 4.812 kB / 0.6864 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.1275, allocations: 37.94 kB / 0.6864 GB, free: 13.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1275, allocations: 0 / 0.6864 GB, free: 13.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001095/0.1276, allocations: 41.62 kB / 0.6865 GB, free: 13.55 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.1277, allocations: 51.41 kB / 0.6865 GB, free: 13.49 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.964e-05/0.1277, allocations: 89.86 kB / 0.6866 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.1277, allocations: 25.7 kB / 0.6866 GB, free: 13.36 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.749e-05/0.1277, allocations: 80.14 kB / 0.6867 GB, free: 13.28 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.1278, allocations: 0.7812 kB / 0.6867 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.884e-05/0.1278, allocations: 10.28 kB / 0.6867 GB, free: 13.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.1279, allocations: 319.4 kB / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.646e-06/0.1279, allocations: 2.469 kB / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.899e-06/0.1279, allocations: 0 / 0.687 GB, free: 12.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.501e-05/0.1279, allocations: 16.78 kB / 0.687 GB, free: 12.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1279, allocations: 0 / 0.687 GB, free: 12.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.731e-05/0.128, allocations: 29.7 kB / 0.6871 GB, free: 12.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.128, allocations: 8.75 kB / 0.6871 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.128, allocations: 7.875 kB / 0.6871 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.945e-06/0.128, allocations: 0.7812 kB / 0.6871 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.35e-05/0.1281, allocations: 0 / 0.6871 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.1281, allocations: 9.703 kB / 0.6871 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.231e-05/0.1281, allocations: 3.938 kB / 0.6871 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.1281, allocations: 3.984 kB / 0.6871 GB, free: 12.86 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 5.922e-05/0.1282, allocations: 111.7 kB / 0.6872 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-06/0.1282, allocations: 4.656 kB / 0.6872 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.717e-05/0.1283, allocations: 42.42 kB / 0.6872 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1283, allocations: 3.984 kB / 0.6873 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1283, allocations: 2.938 kB / 0.6873 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1283, allocations: 3.938 kB / 0.6873 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.478e-05/0.1284, allocations: 153.6 kB / 0.6874 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1284, allocations: 0 / 0.6874 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.535e-05/0.1284, allocations: 0 / 0.6874 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1285, allocations: 0 / 0.6874 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.1285, allocations: 7.938 kB / 0.6874 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1285, allocations: 0 / 0.6874 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1285, allocations: 4.625 kB / 0.6874 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.835e-05/0.1285, allocations: 58.47 kB / 0.6875 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.32e-05/0.1286, allocations: 82.17 kB / 0.6876 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-06/0.1286, allocations: 3.938 kB / 0.6876 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.699e-06/0.1286, allocations: 0 / 0.6876 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.159e-05/0.1286, allocations: 8.984 kB / 0.6876 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.1286, allocations: 0 / 0.6876 GB, free: 12.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.213e-05/0.1287, allocations: 75.56 kB / 0.6876 GB, free: 12.21 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1287, allocations: 4 kB / 0.6876 GB, free: 12.21 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001721/0.1288, allocations: 12 kB / 0.6877 GB, free: 12.2 MB / 494.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0003063/0.1292, allocations: 0.5968 MB / 0.6882 GB, free: 11.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.085e-05/0.1292, allocations: 7.938 kB / 0.6882 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.1292, allocations: 4.094 kB / 0.6882 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.472e-06/0.1292, allocations: 0 / 0.6882 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000112/0.1294, allocations: 4 kB / 0.6883 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002314/0.1296, allocations: 104.4 kB / 0.6883 GB, free: 11.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.1298, allocations: 0.6731 MB / 0.689 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.401e-05/0.1298, allocations: 8 kB / 0.689 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.928e-05/0.1299, allocations: 7.438 kB / 0.689 GB, free: 10.7 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1299, allocations: 0 / 0.689 GB, free: 10.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.947/3.077, allocations: 0.841 MB / 0.6898 GB, free: 10 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/3.077, allocations: 216.3 kB / 0.69 GB, free: 9.746 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.395/4.472, allocations: 0 / 0.69 GB, free: 9.746 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)