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.008914/0.008914, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.00191/0.00191, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 278.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.07/1.07, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002623/0.002623, allocations: 96.27 kB / 0.6943 GB, free: 3.59 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5455/0.5481, allocations: 89.14 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002697/0.5508, allocations: 1.434 MB / 0.7827 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000313/0.5512, allocations: 102.4 kB / 0.7828 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.728e-05/0.5512, allocations: 1.406 kB / 0.7828 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.9e-05/0.5513, allocations: 4.5 kB / 0.7828 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.744e-05/0.5513, allocations: 5.609 kB / 0.7829 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.5516, allocations: 15.44 kB / 0.7829 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.184e-05/0.5517, allocations: 28.8 kB / 0.7829 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.136e-05/0.5518, allocations: 8.641 kB / 0.7829 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.184e-05/0.5518, allocations: 12.42 kB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.127e-05/0.5518, allocations: 15.45 kB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.5519, allocations: 9.188 kB / 0.7829 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.36e-05/0.552, allocations: 18.28 kB / 0.783 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.573e-05/0.552, allocations: 2.766 kB / 0.783 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.947e-05/0.552, allocations: 11.59 kB / 0.783 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.5522, allocations: 36.41 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.5522, allocations: 0.6562 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.694e-06/0.5522, allocations: 0 / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.5522, allocations: 0 / 0.783 GB, free: 12.7 MB / 0.5606 GB 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.0004891/0.5527, allocations: 354.4 kB / 0.7833 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.5527, allocations: 13.69 kB / 0.7834 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.5528, allocations: 30.75 kB / 0.7834 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.63e-05/0.5528, allocations: 6.016 kB / 0.7834 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.553, allocations: 171.7 kB / 0.7836 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.553, allocations: 5.5 kB / 0.7836 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-06/0.553, allocations: 1.906 kB / 0.7836 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.5532, allocations: 50.05 kB / 0.7836 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.5532, allocations: 9.453 kB / 0.7836 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.5532, allocations: 0 / 0.7836 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.5532, allocations: 4 kB / 0.7836 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.5534, allocations: 36.86 kB / 0.7837 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003373/0.5538, allocations: 252.3 kB / 0.7839 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/0.5539, allocations: 43.62 kB / 0.7839 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.295e-05/0.554, allocations: 28.91 kB / 0.784 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.5541, allocations: 3.094 kB / 0.784 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.5541, allocations: 31.91 kB / 0.784 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.5541, allocations: 0 / 0.784 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003605/0.5545, allocations: 92.78 kB / 0.7841 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.5545, allocations: 57.09 kB / 0.7841 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.091e-05/0.5546, allocations: 104.9 kB / 0.7842 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.5546, allocations: 25.7 kB / 0.7843 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.914e-05/0.5547, allocations: 86.97 kB / 0.7844 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.5547, allocations: 5.484 kB / 0.7844 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.5548, allocations: 17.33 kB / 0.7844 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5549, allocations: 313.5 kB / 0.7847 GB, free: 11 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.814e-05/0.555, allocations: 19.72 kB / 0.7847 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.208e-05/0.5551, allocations: 19.64 kB / 0.7847 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.5552, allocations: 41.16 kB / 0.7847 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.5553, allocations: 3.938 kB / 0.7848 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002061/0.5555, allocations: 74.62 kB / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.5555, allocations: 9.844 kB / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.5555, allocations: 0 / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.5555, allocations: 0.7031 kB / 0.7848 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.666e-05/0.5556, allocations: 13.67 kB / 0.7848 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.5556, allocations: 0 / 0.7848 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.684e-05/0.5557, allocations: 6.781 kB / 0.7849 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.5557, allocations: 256 / 0.7849 GB, free: 10.92 MB / 0.5606 GB 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 7.844e-05/0.5558, allocations: 113.3 kB / 0.785 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.5558, allocations: 9.969 kB / 0.785 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002437/0.556, allocations: 79.14 kB / 0.785 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.5561, allocations: 5.375 kB / 0.7851 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.5561, allocations: 0.5156 kB / 0.7851 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.5561, allocations: 0 / 0.7851 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.5563, allocations: 171.3 kB / 0.7852 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.5563, allocations: 0 / 0.7852 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.855e-05/0.5563, allocations: 8.906 kB / 0.7852 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.5563, allocations: 5.641 kB / 0.7852 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.5564, allocations: 0 / 0.7852 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.5564, allocations: 0.875 kB / 0.7852 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5564, allocations: 0.5625 kB / 0.7852 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000251/0.5566, allocations: 167 kB / 0.7854 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.5567, allocations: 79.25 kB / 0.7855 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.5567, allocations: 8.625 kB / 0.7855 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.629e-05/0.5568, allocations: 9.938 kB / 0.7855 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.5568, allocations: 2.359 kB / 0.7855 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-06/0.5568, allocations: 1.188 kB / 0.7855 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.893e-05/0.5569, allocations: 83.06 kB / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5569, allocations: 0 / 0.7856 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002244/0.5571, allocations: 12.42 kB / 0.7856 GB, free: 10.21 MB / 0.5606 GB 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.0005855/0.5577, allocations: 0.7045 MB / 0.7863 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.5579, allocations: 43.31 kB / 0.7863 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.558, allocations: 96 / 0.7863 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.928e-05/0.5581, allocations: 27.05 kB / 0.7863 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002437/0.5583, allocations: 4 kB / 0.7863 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004082/0.5587, allocations: 131.8 kB / 0.7865 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.559, allocations: 0.679 MB / 0.7871 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.353e-05/0.5591, allocations: 2.109 kB / 0.7871 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.5591, allocations: 13.47 kB / 0.7871 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.5591, allocations: 4.062 kB / 0.7871 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.5818, allocations: 1.451 MB / 0.7886 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.553/8.134, allocations: 13.2 kB / 0.7886 GB, free: 8.273 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1)