Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_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.0008034/0.0008068, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0008297/0.0008297, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.4 MB / 0.6655 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.000355, allocations: 12 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6617/0.662, allocations: 142.3 MB / 0.9539 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.0007032/0.6628, allocations: 313.2 kB / 0.9542 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001904/0.663, allocations: 40.16 kB / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.358e-06/0.663, allocations: 0 / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.036e-05/0.663, allocations: 1.062 kB / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.032e-06/0.663, allocations: 0 / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.6633, allocations: 13.75 kB / 0.9542 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.414e-05/0.6634, allocations: 4.484 kB / 0.9542 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.943e-05/0.6634, allocations: 0.7188 kB / 0.9542 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.707e-05/0.6634, allocations: 1.562 kB / 0.9542 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.524e-05/0.6635, allocations: 5.531 kB / 0.9542 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.6635, allocations: 0 / 0.9542 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.764e-05/0.6636, allocations: 11.17 kB / 0.9542 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.715e-06/0.6636, allocations: 1.594 kB / 0.9542 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.6636, allocations: 25.7 kB / 0.9543 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.781e-05/0.6637, allocations: 17.22 kB / 0.9543 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.6637, allocations: 7.938 kB / 0.9543 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6637, allocations: 0 / 0.9543 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.6637, allocations: 0 / 0.9543 GB, free: 7.805 MB / 0.7169 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.0002309/0.664, allocations: 314.2 kB / 0.9546 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.664, allocations: 10.16 kB / 0.9546 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.63e-05/0.6641, allocations: 30.56 kB / 0.9546 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.168e-05/0.6641, allocations: 3.953 kB / 0.9546 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.412e-05/0.6641, allocations: 163 kB / 0.9548 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.6642, allocations: 1.438 kB / 0.9548 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-06/0.6642, allocations: 0 / 0.9548 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.818e-05/0.6643, allocations: 36.75 kB / 0.9548 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.6643, allocations: 0 / 0.9548 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.6643, allocations: 4 kB / 0.9548 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.6643, allocations: 0 / 0.9548 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.077e-05/0.6643, allocations: 5.953 kB / 0.9548 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.79e-05/0.6644, allocations: 143.1 kB / 0.955 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.579e-05/0.6645, allocations: 20.2 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.809e-05/0.6645, allocations: 10.08 kB / 0.955 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-05/0.6646, allocations: 2.75 kB / 0.955 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.6646, allocations: 38.55 kB / 0.955 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.6646, allocations: 3.938 kB / 0.955 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001326/0.6647, allocations: 31.17 kB / 0.9551 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.221e-05/0.6648, allocations: 52.75 kB / 0.9551 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.945e-05/0.6648, allocations: 89.86 kB / 0.9552 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.6648, allocations: 29.77 kB / 0.9552 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.636e-05/0.6648, allocations: 85.33 kB / 0.9553 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.6649, allocations: 3.906 kB / 0.9553 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-06/0.6649, allocations: 0 / 0.9553 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.438e-05/0.6649, allocations: 320 kB / 0.9556 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-06/0.6649, allocations: 1.344 kB / 0.9556 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.464e-06/0.6649, allocations: 5.422 kB / 0.9556 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.11e-05/0.665, allocations: 1.625 kB / 0.9556 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.665, allocations: 0 / 0.9556 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.336e-05/0.665, allocations: 34.73 kB / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.6651, allocations: 4.875 kB / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.6651, allocations: 1.031 kB / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.6651, allocations: 0 / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.724e-05/0.6652, allocations: 3.125 kB / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.6652, allocations: 0 / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.37e-05/0.6652, allocations: 0 / 0.9557 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.6652, allocations: 5.047 kB / 0.9557 GB, free: 6.207 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.645e-05/0.6653, allocations: 115.2 kB / 0.9558 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-06/0.6653, allocations: 9.5 kB / 0.9558 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.641e-05/0.6654, allocations: 41.98 kB / 0.9558 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.6654, allocations: 5.078 kB / 0.9558 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.6654, allocations: 0 / 0.9558 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.6654, allocations: 0 / 0.9558 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.237e-05/0.6655, allocations: 146.8 kB / 0.956 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6655, allocations: 1.281 kB / 0.956 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.861e-05/0.6655, allocations: 5.375 kB / 0.956 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.6655, allocations: 1.562 kB / 0.956 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.6655, allocations: 0 / 0.956 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.6655, allocations: 0 / 0.956 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6655, allocations: 1.875 kB / 0.956 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.322e-05/0.6656, allocations: 65.64 kB / 0.956 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.052e-05/0.6656, allocations: 78.36 kB / 0.9561 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.6656, allocations: 5.062 kB / 0.9561 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.6657, allocations: 4.031 kB / 0.9561 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.549e-05/0.6657, allocations: 5.297 kB / 0.9561 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.6657, allocations: 1.375 kB / 0.9561 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.297e-05/0.6657, allocations: 75.28 kB / 0.9562 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.6657, allocations: 0 / 0.9562 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002342/0.666, allocations: 3.938 kB / 0.9562 GB, free: 5.578 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002463/0.6662, allocations: 0.6066 MB / 0.9568 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.562e-05/0.6663, allocations: 7.656 kB / 0.9568 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.6663, allocations: 1.438 kB / 0.9568 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.284e-06/0.6663, allocations: 1.344 kB / 0.9568 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.6664, allocations: 3.312 kB / 0.9568 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002297/0.6667, allocations: 103.8 kB / 0.9569 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.888e-05/0.6668, allocations: 0.6704 MB / 0.9576 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.802e-05/0.6668, allocations: 1 kB / 0.9576 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.172e-05/0.6668, allocations: 8.562 kB / 0.9576 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.6668, allocations: 0 / 0.9576 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009595/0.6764, allocations: 0.8383 MB / 0.9584 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001164/0.6766, allocations: 193.4 kB / 0.9586 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.573/2.249, allocations: 0 / 0.9586 GB, free: 3.5 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Polynomial_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Polynomial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat does not exist to compare? outputFormat=mat