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.005159/0.005159, allocations: 99.5 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.001276/0.001276, allocations: 193.1 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.415/1.415, 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.002536/0.002536, allocations: 282.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9967/0.9967, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002726/0.002726, allocations: 104.7 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2051, allocations: 86.97 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002741/0.2079, allocations: 1.432 MB / 0.7673 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003134/0.2082, allocations: 92.59 kB / 0.7674 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.649e-05/0.2082, allocations: 4 kB / 0.7674 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 7.077e-05/0.2083, allocations: 3.938 kB / 0.7674 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.863e-05/0.2084, allocations: 3.938 kB / 0.7674 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.2086, allocations: 23.97 kB / 0.7674 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.068e-05/0.2087, allocations: 23.92 kB / 0.7675 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.2088, allocations: 7.984 kB / 0.7675 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.392e-05/0.2089, allocations: 8 kB / 0.7675 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.881e-05/0.2089, allocations: 15.92 kB / 0.7675 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.209, allocations: 4 kB / 0.7675 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.2091, allocations: 19.98 kB / 0.7675 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.092e-05/0.2091, allocations: 7.938 kB / 0.7675 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.134e-05/0.2092, allocations: 15.92 kB / 0.7675 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001182/0.2093, allocations: 32.11 kB / 0.7676 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2093, allocations: 4 kB / 0.7676 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.156e-06/0.2093, allocations: 0 / 0.7676 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.2093, allocations: 3.938 kB / 0.7676 GB, free: 7.23 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.0004847/0.2098, allocations: 343.4 kB / 0.7679 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2098, allocations: 16.03 kB / 0.7679 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.2099, allocations: 34.75 kB / 0.7679 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.2099, allocations: 8.875 kB / 0.768 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.2101, allocations: 164.4 kB / 0.7681 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.2101, allocations: 384 / 0.7681 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.724e-06/0.2101, allocations: 384 / 0.7681 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.2103, allocations: 54.23 kB / 0.7682 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2103, allocations: 3.938 kB / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.2103, allocations: 0 / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.2103, allocations: 4 kB / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.2105, allocations: 39.89 kB / 0.7682 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003572/0.2109, allocations: 253 kB / 0.7684 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.211, allocations: 42.5 kB / 0.7685 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.741e-05/0.2111, allocations: 28.89 kB / 0.7685 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.2112, allocations: 0 / 0.7685 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.2112, allocations: 38.56 kB / 0.7686 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.2112, allocations: 0 / 0.7686 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003485/0.2115, allocations: 93.53 kB / 0.7686 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.2116, allocations: 55.53 kB / 0.7687 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.891e-05/0.2117, allocations: 113.8 kB / 0.7688 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.2117, allocations: 25.7 kB / 0.7688 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.2118, allocations: 80.14 kB / 0.7689 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.2118, allocations: 11.89 kB / 0.7689 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.874e-05/0.2118, allocations: 13.72 kB / 0.7689 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.212, allocations: 314.8 kB / 0.7692 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.433e-05/0.2121, allocations: 19.98 kB / 0.7692 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.085e-05/0.2121, allocations: 19.98 kB / 0.7693 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.2123, allocations: 48.75 kB / 0.7693 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2123, allocations: 3.938 kB / 0.7693 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001948/0.2125, allocations: 69.66 kB / 0.7694 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2125, allocations: 8.094 kB / 0.7694 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.2125, allocations: 0 / 0.7694 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.2126, allocations: 0 / 0.7694 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.603e-05/0.2127, allocations: 15.92 kB / 0.7694 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.2127, allocations: 0 / 0.7694 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.278e-05/0.2127, allocations: 4 kB / 0.7694 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.2127, allocations: 0 / 0.7694 GB, free: 5.105 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 8.189e-05/0.2128, allocations: 114.4 kB / 0.7695 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.52e-05/0.2128, allocations: 11.94 kB / 0.7695 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.2131, allocations: 77.12 kB / 0.7696 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.2131, allocations: 0 / 0.7696 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2131, allocations: 0 / 0.7696 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.2131, allocations: 4 kB / 0.7696 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.2133, allocations: 169.6 kB / 0.7698 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2133, allocations: 0 / 0.7698 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.308e-05/0.2134, allocations: 8 kB / 0.7698 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.2134, allocations: 8.016 kB / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.2134, allocations: 0 / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.2134, allocations: 3.984 kB / 0.7698 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.2134, allocations: 0 / 0.7698 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.2136, allocations: 171.4 kB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.394e-05/0.2137, allocations: 77.11 kB / 0.77 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.2137, allocations: 4.031 kB / 0.77 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.28e-05/0.2138, allocations: 7.984 kB / 0.77 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.2138, allocations: 4 kB / 0.77 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.2138, allocations: 256 / 0.77 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.01e-05/0.2139, allocations: 91.27 kB / 0.7701 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2139, allocations: 0 / 0.7701 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002256/0.2141, allocations: 8 kB / 0.7701 GB, free: 4.262 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.0005966/0.2147, allocations: 0.7084 MB / 0.7708 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002174/0.215, allocations: 43.89 kB / 0.7709 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.215, allocations: 0 / 0.7709 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.746e-05/0.2151, allocations: 24.08 kB / 0.7709 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.2154, allocations: 7.984 kB / 0.7709 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004286/0.2158, allocations: 151 kB / 0.771 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.2161, allocations: 0.6807 MB / 0.7717 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.461e-05/0.2162, allocations: 0 / 0.7717 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.2162, allocations: 11.38 kB / 0.7717 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.2162, allocations: 0 / 0.7717 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.2388, allocations: 1.433 MB / 0.7731 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.783/8.022, allocations: 23.45 kB / 0.7731 GB, free: 1.188 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)