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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.009021/0.009021, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.334/1.334, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001648/0.001648, allocations: 273.5 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9222/0.9222, allocations: 169.5 MB / 0.5004 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004332, allocations: 16.22 kB / 0.5987 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1576, allocations: 88.55 MB / 0.6851 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.000579/0.1582, allocations: 311.2 kB / 0.6854 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001976/0.1584, allocations: 37.38 kB / 0.6855 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.705e-06/0.1584, allocations: 4 kB / 0.6855 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.376e-05/0.1584, allocations: 0 / 0.6855 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.957e-06/0.1585, allocations: 3.938 kB / 0.6855 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.1586, allocations: 13.2 kB / 0.6855 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 2.775e-05/0.1587, allocations: 0 / 0.6855 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.727e-05/0.1587, allocations: 5.844 kB / 0.6855 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.502e-05/0.1588, allocations: 3.984 kB / 0.6855 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.172e-05/0.1588, allocations: 0 / 0.6855 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.506e-06/0.1588, allocations: 0 / 0.6855 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.568e-05/0.1589, allocations: 15.98 kB / 0.6855 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.523e-06/0.1589, allocations: 6.531 kB / 0.6855 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.1589, allocations: 29.7 kB / 0.6855 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.113e-05/0.159, allocations: 15.97 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.159, allocations: 0 / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.159, allocations: 3.938 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.159, allocations: 0 / 0.6856 GB, free: 14.61 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.0002433/0.1593, allocations: 312.1 kB / 0.6859 GB, free: 14.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1593, allocations: 8.031 kB / 0.6859 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.187e-05/0.1593, allocations: 1.438 kB / 0.6859 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.83e-05/0.1594, allocations: 170.1 kB / 0.686 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.1595, allocations: 384 / 0.686 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.1595, allocations: 384 / 0.686 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.405e-05/0.1595, allocations: 35.05 kB / 0.6861 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.488e-06/0.1596, allocations: 192 / 0.6861 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1596, allocations: 7.938 kB / 0.6861 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.1596, allocations: 0.75 kB / 0.6861 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.546e-05/0.1596, allocations: 0 / 0.6861 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001309/0.1598, allocations: 146.9 kB / 0.6862 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.345e-05/0.1598, allocations: 24.27 kB / 0.6862 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.584e-05/0.1598, allocations: 12.86 kB / 0.6863 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.1599, allocations: 4.062 kB / 0.6863 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.1599, allocations: 31.19 kB / 0.6863 GB, free: 13.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1599, allocations: 1.031 kB / 0.6863 GB, free: 13.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001027/0.16, allocations: 41.56 kB / 0.6863 GB, free: 13.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.16, allocations: 53.03 kB / 0.6864 GB, free: 13.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.538e-05/0.1601, allocations: 93.86 kB / 0.6865 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.1601, allocations: 25.7 kB / 0.6865 GB, free: 13.47 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.881e-05/0.1601, allocations: 80.73 kB / 0.6866 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.1602, allocations: 0 / 0.6866 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/0.1602, allocations: 12.34 kB / 0.6866 GB, free: 13.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1603, allocations: 314.8 kB / 0.6869 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.416e-06/0.1603, allocations: 0 / 0.6869 GB, free: 13.06 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.223e-06/0.1603, allocations: 4 kB / 0.6869 GB, free: 13.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.411e-05/0.1604, allocations: 6.766 kB / 0.6869 GB, free: 13.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1604, allocations: 4 kB / 0.6869 GB, free: 13.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.035e-05/0.1604, allocations: 37.62 kB / 0.6869 GB, free: 13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.1605, allocations: 4 kB / 0.6869 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1605, allocations: 0.5 kB / 0.6869 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.1605, allocations: 3.938 kB / 0.6869 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.114e-05/0.1605, allocations: 4.875 kB / 0.6869 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.266e-06/0.1605, allocations: 0 / 0.6869 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.149e-05/0.1606, allocations: 1 kB / 0.6869 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1606, allocations: 7.938 kB / 0.687 GB, free: 12.98 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 6.779e-05/0.1607, allocations: 113.2 kB / 0.6871 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.56e-06/0.1607, allocations: 0 / 0.6871 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.1608, allocations: 49.56 kB / 0.6871 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1608, allocations: 4.031 kB / 0.6871 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1608, allocations: 0 / 0.6871 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1608, allocations: 3.938 kB / 0.6871 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.1609, allocations: 149.7 kB / 0.6873 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1609, allocations: 4 kB / 0.6873 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.674e-05/0.161, allocations: 7.938 kB / 0.6873 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.161, allocations: 0 / 0.6873 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.161, allocations: 3.938 kB / 0.6873 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.161, allocations: 0 / 0.6873 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.161, allocations: 0 / 0.6873 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.477e-05/0.161, allocations: 65.11 kB / 0.6873 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.669e-05/0.1611, allocations: 81.02 kB / 0.6874 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.008e-05/0.1611, allocations: 3.938 kB / 0.6874 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.343e-05/0.1611, allocations: 4 kB / 0.6874 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.4e-05/0.1611, allocations: 4 kB / 0.6874 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.1612, allocations: 0 / 0.6874 GB, free: 12.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.752e-05/0.1612, allocations: 75.28 kB / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1612, allocations: 4.031 kB / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001746/0.1614, allocations: 4 kB / 0.6875 GB, free: 12.32 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.0001646/0.1616, allocations: 107.2 kB / 0.6876 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.069e-05/0.1616, allocations: 7.938 kB / 0.6876 GB, free: 12.19 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.1616, allocations: 0 / 0.6876 GB, free: 12.19 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.546e-06/0.1616, allocations: 4 kB / 0.6876 GB, free: 12.19 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001155/0.1618, allocations: 0 / 0.6876 GB, free: 12.19 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000159/0.1619, allocations: 82.89 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.1622, allocations: 0.6731 MB / 0.6884 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.616e-05/0.1623, allocations: 3.984 kB / 0.6884 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.754e-05/0.1623, allocations: 15.38 kB / 0.6884 GB, free: 11.36 MB / 494.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1623, allocations: 0 / 0.6884 GB, free: 11.36 MB / 494.1 MB Notification: Performance of Templates: time 0.002005/0.1643, allocations: 276.6 kB / 0.6886 GB, free: 11.09 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)