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.00117/0.00117, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00102/0.00102, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.138/1.138, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001774/0.001774, allocations: 282.8 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8557/0.8557, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001514, allocations: 95.73 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1229, allocations: 86.98 MB / 0.6797 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.001493/0.1244, allocations: 0.6276 MB / 0.6804 GB, free: 332 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001773/0.1246, allocations: 35.88 kB / 0.6804 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.534e-06/0.1247, allocations: 4.594 kB / 0.6804 GB, free: 292 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.502e-05/0.1247, allocations: 0 / 0.6804 GB, free: 292 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.727e-06/0.1247, allocations: 0.5625 kB / 0.6804 GB, free: 292 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002022/0.1249, allocations: 12.7 kB / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 3.032e-05/0.1249, allocations: 4 kB / 0.6804 GB, free: 276 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.057e-05/0.125, allocations: 1.969 kB / 0.6804 GB, free: 276 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.758e-06/0.125, allocations: 0 / 0.6804 GB, free: 276 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.566e-05/0.125, allocations: 4 kB / 0.6804 GB, free: 272 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.003e-06/0.125, allocations: 0 / 0.6804 GB, free: 272 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.054e-05/0.1251, allocations: 19.97 kB / 0.6804 GB, free: 252 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-06/0.1251, allocations: 0.625 kB / 0.6804 GB, free: 252 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.406e-05/0.1251, allocations: 4 kB / 0.6804 GB, free: 248 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 6.653e-05/0.1252, allocations: 23.97 kB / 0.6805 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.1252, allocations: 0 / 0.6805 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1252, allocations: 0 / 0.6805 GB, free: 224 kB / 478.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1252, allocations: 0 / 0.6805 GB, free: 224 kB / 478.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.0002376/0.1255, allocations: 311.6 kB / 0.6808 GB, free: 15.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.1255, allocations: 11.97 kB / 0.6808 GB, free: 15.85 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.567e-05/0.1255, allocations: 34.75 kB / 0.6808 GB, free: 15.81 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.733e-05/0.1256, allocations: 12.81 kB / 0.6808 GB, free: 15.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.661e-05/0.1256, allocations: 168.4 kB / 0.681 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.273e-06/0.1256, allocations: 4.375 kB / 0.681 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.29e-06/0.1257, allocations: 384 / 0.681 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.869e-05/0.1257, allocations: 30.25 kB / 0.681 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.1257, allocations: 3.938 kB / 0.681 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-06/0.1257, allocations: 4 kB / 0.681 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.1258, allocations: 0 / 0.681 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.456e-05/0.1258, allocations: 0 / 0.681 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.92e-05/0.1259, allocations: 145.7 kB / 0.6812 GB, free: 15.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.253e-05/0.1259, allocations: 30.55 kB / 0.6812 GB, free: 15.32 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.256e-05/0.1259, allocations: 4.859 kB / 0.6812 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.126, allocations: 8.047 kB / 0.6812 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.62e-05/0.126, allocations: 30.56 kB / 0.6812 GB, free: 15.26 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.126, allocations: 0 / 0.6812 GB, free: 15.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 9.48e-05/0.1261, allocations: 37.58 kB / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.1261, allocations: 51.41 kB / 0.6813 GB, free: 15.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.806e-05/0.1262, allocations: 97.98 kB / 0.6814 GB, free: 15.05 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.028e-05/0.1262, allocations: 29.7 kB / 0.6814 GB, free: 15.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.115e-05/0.1262, allocations: 80.14 kB / 0.6815 GB, free: 14.93 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.1262, allocations: 288 / 0.6815 GB, free: 14.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.494e-05/0.1262, allocations: 9.719 kB / 0.6815 GB, free: 14.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.948e-05/0.1263, allocations: 318.8 kB / 0.6818 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.595e-06/0.1263, allocations: 0 / 0.6818 GB, free: 14.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.728e-06/0.1264, allocations: 0 / 0.6818 GB, free: 14.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.256e-05/0.1264, allocations: 12.92 kB / 0.6818 GB, free: 14.58 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1264, allocations: 0 / 0.6818 GB, free: 14.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.515e-05/0.1264, allocations: 37.64 kB / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.1264, allocations: 10.34 kB / 0.6819 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1265, allocations: 3.938 kB / 0.6819 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.268e-06/0.1265, allocations: 3.984 kB / 0.6819 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.678e-05/0.1265, allocations: 0 / 0.6819 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1265, allocations: 4 kB / 0.6819 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.19e-05/0.1265, allocations: 3.938 kB / 0.6819 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.1266, allocations: 3.984 kB / 0.6819 GB, free: 14.51 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.077e-05/0.1266, allocations: 111.2 kB / 0.682 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-06/0.1266, allocations: 3.938 kB / 0.682 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.123e-05/0.1267, allocations: 48.75 kB / 0.6821 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1267, allocations: 0 / 0.6821 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1267, allocations: 0 / 0.6821 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-06/0.1267, allocations: 0 / 0.6821 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.999e-05/0.1268, allocations: 153.6 kB / 0.6822 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1268, allocations: 3.938 kB / 0.6822 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.646e-05/0.1268, allocations: 7.922 kB / 0.6822 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.1268, allocations: 0 / 0.6822 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1268, allocations: 3.938 kB / 0.6822 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1269, allocations: 8 kB / 0.6822 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.1269, allocations: 0 / 0.6822 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.281e-05/0.1269, allocations: 57.14 kB / 0.6823 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.871e-05/0.1269, allocations: 81.09 kB / 0.6824 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.037e-05/0.127, allocations: 7.938 kB / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-06/0.127, allocations: 0 / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.125e-06/0.127, allocations: 0 / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-06/0.127, allocations: 0 / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.978e-05/0.127, allocations: 75.28 kB / 0.6824 GB, free: 13.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.127, allocations: 0 / 0.6824 GB, free: 13.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001687/0.1272, allocations: 8 kB / 0.6824 GB, free: 13.85 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.0002856/0.1275, allocations: 0.6102 MB / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 4.865e-05/0.1275, allocations: 4 kB / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1276, allocations: 0 / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.623e-06/0.1276, allocations: 0 / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001138/0.1277, allocations: 8 kB / 0.6831 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002169/0.1279, allocations: 106.8 kB / 0.6832 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001694/0.1281, allocations: 0.6729 MB / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.077e-05/0.1281, allocations: 0 / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.734e-05/0.1281, allocations: 7.438 kB / 0.6838 GB, free: 12.35 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1281, allocations: 4 kB / 0.6838 GB, free: 12.35 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.685/0.8132, allocations: 0.9272 MB / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.8134, allocations: 217.5 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.338/3.152, allocations: 2.25 kB / 0.6849 GB, free: 11.3 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)