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.007508/0.007508, allocations: 97.41 kB / 15.73 MB, free: 6.051 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.001705/0.001705, allocations: 196.9 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002433/0.002434, allocations: 274.9 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5074 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002742/0.002742, allocations: 99.84 kB / 0.6943 GB, free: 3.57 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.487/0.4897, allocations: 89.14 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.001784/0.4915, allocations: 0.5857 MB / 0.782 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002842/0.4918, allocations: 39.77 kB / 0.782 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.54e-05/0.4919, allocations: 0 / 0.782 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.4919, allocations: 1.562 kB / 0.782 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.064e-06/0.4919, allocations: 0 / 0.782 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003071/0.4922, allocations: 12.22 kB / 0.782 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.307e-05/0.4923, allocations: 6.875 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.251e-05/0.4923, allocations: 6.047 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.543e-05/0.4924, allocations: 4 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.184e-05/0.4924, allocations: 2.547 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.818e-06/0.4924, allocations: 0 / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.4925, allocations: 20.17 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.4926, allocations: 4.453 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.931e-05/0.4926, allocations: 1.156 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.4927, allocations: 12.38 kB / 0.7821 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4927, allocations: 0 / 0.7821 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of FrontEnd: time 5.08e-06/0.4927, allocations: 0 / 0.7821 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.4927, allocations: 3.938 kB / 0.7821 GB, free: 13.44 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003911/0.4931, allocations: 322.6 kB / 0.7824 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.4932, allocations: 8.594 kB / 0.7824 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.445e-05/0.4932, allocations: 33.23 kB / 0.7824 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.214e-05/0.4932, allocations: 0.9375 kB / 0.7824 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.4934, allocations: 165.5 kB / 0.7826 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.4934, allocations: 384 / 0.7826 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-06/0.4934, allocations: 2.062 kB / 0.7826 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.4935, allocations: 29.38 kB / 0.7826 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.4936, allocations: 4.734 kB / 0.7826 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.4936, allocations: 4 kB / 0.7826 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.4936, allocations: 1.719 kB / 0.7826 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.323e-05/0.4936, allocations: 1.656 kB / 0.7826 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002283/0.4938, allocations: 151.6 kB / 0.7828 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.04e-05/0.4939, allocations: 18.08 kB / 0.7828 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.4939, allocations: 5.375 kB / 0.7828 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.4939, allocations: 2.141 kB / 0.7828 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.494, allocations: 40.94 kB / 0.7828 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.494, allocations: 3.938 kB / 0.7828 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001432/0.4941, allocations: 44.19 kB / 0.7829 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.4942, allocations: 51.97 kB / 0.7829 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.859e-05/0.4943, allocations: 90.39 kB / 0.783 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.4943, allocations: 29.64 kB / 0.783 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.4943, allocations: 81.97 kB / 0.7831 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.4944, allocations: 3.953 kB / 0.7831 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.4944, allocations: 17.14 kB / 0.7831 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4945, allocations: 312.1 kB / 0.7834 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.345e-05/0.4946, allocations: 5.406 kB / 0.7834 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.143e-06/0.4946, allocations: 1.406 kB / 0.7834 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.735e-05/0.4946, allocations: 8.359 kB / 0.7834 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4946, allocations: 0 / 0.7834 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.954e-05/0.4947, allocations: 37.56 kB / 0.7835 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.4947, allocations: 6.906 kB / 0.7835 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.4947, allocations: 10.25 kB / 0.7835 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.4947, allocations: 0 / 0.7835 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.052e-05/0.4948, allocations: 1.938 kB / 0.7835 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.4948, allocations: 1.406 kB / 0.7835 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.212e-05/0.4948, allocations: 0 / 0.7835 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.4948, allocations: 1.984 kB / 0.7835 GB, free: 11.82 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 (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 8.882e-05/0.4949, allocations: 107.5 kB / 0.7836 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.683e-06/0.4949, allocations: 0.6094 kB / 0.7836 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.495, allocations: 51.19 kB / 0.7837 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.4951, allocations: 0 / 0.7837 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.4951, allocations: 0 / 0.7837 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.4951, allocations: 3.938 kB / 0.7837 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.4952, allocations: 145 kB / 0.7838 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4952, allocations: 0.5625 kB / 0.7838 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.626e-05/0.4952, allocations: 3.594 kB / 0.7838 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.4952, allocations: 0 / 0.7838 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.4952, allocations: 9.031 kB / 0.7838 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4953, allocations: 0.6094 kB / 0.7838 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4953, allocations: 0 / 0.7838 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.965e-05/0.4953, allocations: 62.22 kB / 0.7839 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.4954, allocations: 78.19 kB / 0.7839 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.4954, allocations: 5.719 kB / 0.7839 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.048e-05/0.4954, allocations: 0 / 0.7839 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.29e-05/0.4954, allocations: 2.094 kB / 0.7839 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-06/0.4955, allocations: 5.281 kB / 0.784 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.18e-05/0.4955, allocations: 79.22 kB / 0.784 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4955, allocations: 0 / 0.784 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001907/0.4957, allocations: 10.8 kB / 0.784 GB, free: 11.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 (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.0004686/0.4962, allocations: 0.6137 MB / 0.7846 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.839e-05/0.4963, allocations: 4.156 kB / 0.7846 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4963, allocations: 0 / 0.7846 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.294e-05/0.4963, allocations: 7.391 kB / 0.7846 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.4964, allocations: 1.312 kB / 0.7846 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003069/0.4967, allocations: 99.67 kB / 0.7847 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.4971, allocations: 0.6714 MB / 0.7854 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.451e-05/0.4971, allocations: 7.656 kB / 0.7854 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.301e-05/0.4971, allocations: 8.141 kB / 0.7854 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.4971, allocations: 0 / 0.7854 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.5191, allocations: 1.03 MB / 0.7864 GB, free: 9.414 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/8.15, allocations: 11.25 kB / 0.7864 GB, free: 9.406 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)