Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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.001516/0.001517, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.303/1.303, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002189/0.002189, allocations: 282.8 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8689/0.8689, allocations: 169.3 MB / 0.4982 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 100.7 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1243, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002245/0.1266, allocations: 1.429 MB / 0.6817 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002437/0.1269, allocations: 92.53 kB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.285e-05/0.1269, allocations: 0 / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.817e-05/0.127, allocations: 3.984 kB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.84e-05/0.127, allocations: 4.531 kB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001865/0.1272, allocations: 19.97 kB / 0.6818 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.353e-05/0.1272, allocations: 28.58 kB / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.099e-05/0.1273, allocations: 0.8125 kB / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.37e-05/0.1274, allocations: 11.94 kB / 0.6818 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.29e-05/0.1274, allocations: 12.89 kB / 0.6819 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.1274, allocations: 4 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.997e-05/0.1275, allocations: 20.64 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.312e-05/0.1275, allocations: 7.922 kB / 0.6819 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.375e-05/0.1276, allocations: 16.44 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.685e-05/0.1277, allocations: 38.12 kB / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1277, allocations: 0 / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1277, allocations: 3.938 kB / 0.6819 GB, free: 14.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.1277, allocations: 0 / 0.6819 GB, free: 14.88 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003616/0.1281, allocations: 347.4 kB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.1281, allocations: 8.031 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.512e-05/0.1281, allocations: 30.75 kB / 0.6823 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.13e-05/0.1282, allocations: 4.938 kB / 0.6823 GB, free: 14.44 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.409e-05/0.1283, allocations: 168.3 kB / 0.6825 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.1283, allocations: 4.375 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.558e-06/0.1283, allocations: 8.359 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.1284, allocations: 58.17 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.1284, allocations: 3.938 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.593e-06/0.1285, allocations: 4 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1285, allocations: 0 / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.1286, allocations: 31.97 kB / 0.6826 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002566/0.1289, allocations: 249 kB / 0.6828 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000114/0.129, allocations: 50.48 kB / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.303e-05/0.1291, allocations: 28.84 kB / 0.6829 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.1291, allocations: 4 kB / 0.6829 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.1292, allocations: 30.56 kB / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1292, allocations: 0 / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003229/0.1295, allocations: 89.73 kB / 0.683 GB, free: 13.61 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.1295, allocations: 51.41 kB / 0.6831 GB, free: 13.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.169e-05/0.1296, allocations: 105.8 kB / 0.6832 GB, free: 13.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.1296, allocations: 25.7 kB / 0.6832 GB, free: 13.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.651e-05/0.1297, allocations: 92.06 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.417e-05/0.1297, allocations: 7.906 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.923e-05/0.1297, allocations: 13.72 kB / 0.6833 GB, free: 13.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.101e-05/0.1298, allocations: 318.8 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.286e-05/0.1299, allocations: 23.92 kB / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.256e-05/0.13, allocations: 19.97 kB / 0.6836 GB, free: 12.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.1301, allocations: 36.83 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1302, allocations: 3.938 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001862/0.1303, allocations: 77.72 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.1304, allocations: 4 kB / 0.6838 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.1304, allocations: 0 / 0.6838 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1304, allocations: 3.938 kB / 0.6838 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.691e-05/0.1305, allocations: 11.98 kB / 0.6838 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.1305, allocations: 0 / 0.6838 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.632e-05/0.1305, allocations: 11.89 kB / 0.6838 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.1305, allocations: 0 / 0.6838 GB, free: 12.76 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 (2): * Single equations (assignments): 2 * 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 6.326e-05/0.1306, allocations: 122.4 kB / 0.6839 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.1306, allocations: 0 / 0.6839 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002088/0.1308, allocations: 73.19 kB / 0.684 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.1309, allocations: 0 / 0.684 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1309, allocations: 7.984 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.1309, allocations: 0 / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001362/0.131, allocations: 157.6 kB / 0.6841 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.131, allocations: 4.031 kB / 0.6841 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.269e-05/0.1311, allocations: 11.98 kB / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.1311, allocations: 0 / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.1311, allocations: 4 kB / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.1311, allocations: 256 / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1311, allocations: 4 kB / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002136/0.1313, allocations: 171.4 kB / 0.6843 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.07e-05/0.1314, allocations: 81.02 kB / 0.6844 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.1314, allocations: 7.984 kB / 0.6844 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.081e-05/0.1315, allocations: 8 kB / 0.6844 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.67e-05/0.1315, allocations: 0 / 0.6844 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-06/0.1315, allocations: 0 / 0.6844 GB, free: 12.02 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.175e-05/0.1316, allocations: 87.27 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1316, allocations: 0 / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.1318, allocations: 12 kB / 0.6845 GB, free: 11.92 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 (2): * Single equations (assignments): 2 * 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.0004593/0.1322, allocations: 0.7124 MB / 0.6852 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001853/0.1324, allocations: 40 kB / 0.6852 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1324, allocations: 0 / 0.6852 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.165e-05/0.1325, allocations: 23.97 kB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.1328, allocations: 7.938 kB / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003531/0.1331, allocations: 143.2 kB / 0.6854 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.1333, allocations: 0.6847 MB / 0.6861 GB, free: 10.22 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.946e-05/0.1334, allocations: 7.938 kB / 0.6861 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.722e-05/0.1334, allocations: 11.42 kB / 0.6861 GB, free: 10.2 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1334, allocations: 0 / 0.6861 GB, free: 10.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2656/0.399, allocations: 1.405 MB / 0.6875 GB, free: 8.871 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.406, allocations: 5.672 kB / 0.6875 GB, free: 8.867 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1)