Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/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.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_9_Buildings_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.001128/0.001128, allocations: 90.75 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.0009637/0.0009638, 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.418/1.418, allocations: 223.2 MB / 240 MB, free: 5.453 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.539/2.539, allocations: 390.4 MB / 0.6655 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003474/0.0003475, allocations: 8 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7763/0.7767, allocations: 142.3 MB / 0.9538 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.001313/0.7781, allocations: 1.15 MB / 0.955 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002517/0.7783, allocations: 90.53 kB / 0.9551 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.67e-05/0.7784, allocations: 3.938 kB / 0.9551 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.557e-05/0.7784, allocations: 3.984 kB / 0.9551 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.281e-05/0.7785, allocations: 5.125 kB / 0.9551 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.7787, allocations: 13.48 kB / 0.9551 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.555e-05/0.7787, allocations: 16 kB / 0.9551 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.951e-05/0.7788, allocations: 14.75 kB / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.98e-05/0.7789, allocations: 11.84 kB / 0.9551 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.622e-05/0.7789, allocations: 11.45 kB / 0.9551 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.7789, allocations: 1.156 kB / 0.9551 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.812e-05/0.779, allocations: 10.92 kB / 0.9551 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.779, allocations: 10.78 kB / 0.9552 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.7791, allocations: 25.7 kB / 0.9552 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.867e-05/0.7792, allocations: 25.2 kB / 0.9552 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.7792, allocations: 0 / 0.9552 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7792, allocations: 0 / 0.9552 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.557e-06/0.7792, allocations: 0 / 0.9552 GB, free: 6.984 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003491/0.7795, allocations: 348.5 kB / 0.9555 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.7796, allocations: 8.969 kB / 0.9555 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.541e-05/0.7796, allocations: 35.72 kB / 0.9556 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.274e-05/0.7796, allocations: 5.047 kB / 0.9556 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.523e-05/0.7797, allocations: 173.3 kB / 0.9557 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.7797, allocations: 0 / 0.9557 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-06/0.7797, allocations: 1.312 kB / 0.9557 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001636/0.7799, allocations: 63.3 kB / 0.9558 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.7799, allocations: 1.031 kB / 0.9558 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.7799, allocations: 3.938 kB / 0.9558 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.78, allocations: 0 / 0.9558 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.7801, allocations: 51.45 kB / 0.9559 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002499/0.7804, allocations: 256.6 kB / 0.9561 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.7805, allocations: 50.95 kB / 0.9562 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.234e-05/0.7806, allocations: 29.03 kB / 0.9562 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.7806, allocations: 2.719 kB / 0.9562 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/0.7807, allocations: 34.56 kB / 0.9562 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.7807, allocations: 0 / 0.9562 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003305/0.781, allocations: 104.2 kB / 0.9563 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.781, allocations: 55.41 kB / 0.9564 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.764e-05/0.7811, allocations: 106.2 kB / 0.9565 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.502e-06/0.7811, allocations: 29.64 kB / 0.9565 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.636e-05/0.7811, allocations: 85.8 kB / 0.9566 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.7812, allocations: 9.234 kB / 0.9566 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-06/0.7812, allocations: 4 kB / 0.9566 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.911e-05/0.7812, allocations: 312.3 kB / 0.9569 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.856e-05/0.7813, allocations: 27.05 kB / 0.9569 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.007e-05/0.7814, allocations: 27.91 kB / 0.9569 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.524e-05/0.7815, allocations: 23.92 kB / 0.957 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.7815, allocations: 0 / 0.957 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001783/0.7816, allocations: 81.44 kB / 0.957 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.7817, allocations: 5.5 kB / 0.957 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.7817, allocations: 1.469 kB / 0.9571 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.7817, allocations: 3.953 kB / 0.9571 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.157e-05/0.7818, allocations: 12.42 kB / 0.9571 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.7818, allocations: 0 / 0.9571 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.472e-05/0.7818, allocations: 10.31 kB / 0.9571 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.7819, allocations: 5.844 kB / 0.9571 GB, free: 5.129 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 (2): * Single equations (assignments): 2 * 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.027e-05/0.7819, allocations: 119.6 kB / 0.9572 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.7819, allocations: 1.406 kB / 0.9572 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002099/0.7822, allocations: 83.25 kB / 0.9573 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7822, allocations: 1.125 kB / 0.9573 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.7822, allocations: 3.953 kB / 0.9573 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.7822, allocations: 1.25 kB / 0.9573 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.7823, allocations: 164.5 kB / 0.9574 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.7823, allocations: 7.938 kB / 0.9574 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.616e-05/0.7824, allocations: 12.2 kB / 0.9575 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.7824, allocations: 1.156 kB / 0.9575 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-06/0.7824, allocations: 0 / 0.9575 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.7824, allocations: 5.062 kB / 0.9575 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.7824, allocations: 0 / 0.9575 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001948/0.7826, allocations: 184 kB / 0.9576 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.66e-05/0.7826, allocations: 86.11 kB / 0.9577 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.7826, allocations: 1 kB / 0.9577 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.186e-05/0.7827, allocations: 10.02 kB / 0.9577 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.122e-05/0.7828, allocations: 1.125 kB / 0.9577 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-06/0.7828, allocations: 0.9688 kB / 0.9577 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.751e-05/0.7828, allocations: 92.06 kB / 0.9578 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7828, allocations: 0 / 0.9578 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002306/0.783, allocations: 7.375 kB / 0.9578 GB, free: 4.371 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 (2): * Single equations (assignments): 2 * 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.0003953/0.7834, allocations: 0.7125 MB / 0.9585 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001894/0.7836, allocations: 50.52 kB / 0.9586 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.7837, allocations: 0 / 0.9586 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.086e-05/0.7837, allocations: 29.7 kB / 0.9586 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.784, allocations: 5 kB / 0.9586 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003564/0.7844, allocations: 147.8 kB / 0.9587 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.39e-05/0.7845, allocations: 0.6865 MB / 0.9594 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.307e-05/0.7845, allocations: 1.156 kB / 0.9594 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.7845, allocations: 12.53 kB / 0.9594 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7845, allocations: 3.938 kB / 0.9594 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01/0.7945, allocations: 1.155 MB / 0.9606 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001284/0.7947, allocations: 181 kB / 0.9607 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/2.546, allocations: 0 / 0.9607 GB, free: 1.984 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Polynomial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.mat does not exist to compare? outputFormat=mat