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.001419/0.001419, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001884/0.001884, allocations: 177.3 kB / 15.94 MB, free: 228 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.467/1.467, allocations: 223.2 MB / 239.9 MB, free: 5.477 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.476/2.476, allocations: 390.3 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003899, allocations: 16 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7592/0.7596, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.001707/0.7613, allocations: 1.153 MB / 0.9547 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002971/0.7617, allocations: 86.78 kB / 0.9548 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.814e-05/0.7617, allocations: 0 / 0.9548 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.361e-05/0.7618, allocations: 3.938 kB / 0.9548 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.868e-05/0.7618, allocations: 5.094 kB / 0.9548 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.7621, allocations: 17.39 kB / 0.9548 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.474e-05/0.7621, allocations: 16.31 kB / 0.9548 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.917e-05/0.7622, allocations: 2.656 kB / 0.9548 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.124e-05/0.7623, allocations: 10.98 kB / 0.9548 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.315e-05/0.7624, allocations: 11.56 kB / 0.9549 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.7624, allocations: 5.094 kB / 0.9549 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.041e-05/0.7625, allocations: 15.08 kB / 0.9549 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.023e-05/0.7625, allocations: 6.484 kB / 0.9549 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.7625, allocations: 30.67 kB / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.918e-05/0.7626, allocations: 24.39 kB / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.7626, allocations: 0 / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.605e-06/0.7626, allocations: 0 / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.7627, allocations: 0 / 0.9549 GB, free: 7.016 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.0004045/0.7631, allocations: 344.6 kB / 0.9553 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.7631, allocations: 9.406 kB / 0.9553 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.7632, allocations: 38.55 kB / 0.9553 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.7632, allocations: 5.359 kB / 0.9553 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.155e-05/0.7633, allocations: 169.5 kB / 0.9555 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.7633, allocations: 0 / 0.9555 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.908e-06/0.7633, allocations: 1.375 kB / 0.9555 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.7635, allocations: 62.88 kB / 0.9555 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.7635, allocations: 1.469 kB / 0.9555 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.7636, allocations: 3.938 kB / 0.9555 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.7636, allocations: 0 / 0.9555 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.7638, allocations: 55.06 kB / 0.9556 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.7641, allocations: 249.3 kB / 0.9558 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.7642, allocations: 46.75 kB / 0.9559 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.7643, allocations: 5.344 kB / 0.9559 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.7643, allocations: 39.94 kB / 0.9559 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.7643, allocations: 0 / 0.9559 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003875/0.7647, allocations: 108.5 kB / 0.956 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.7648, allocations: 51.41 kB / 0.9561 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.756e-05/0.7648, allocations: 106.3 kB / 0.9562 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.7649, allocations: 25.7 kB / 0.9562 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.7649, allocations: 85.3 kB / 0.9563 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.7649, allocations: 9.359 kB / 0.9563 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-06/0.7649, allocations: 0 / 0.9563 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.353e-05/0.765, allocations: 316 kB / 0.9566 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.331e-05/0.7651, allocations: 23.08 kB / 0.9566 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.317e-05/0.7652, allocations: 24.34 kB / 0.9566 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.641e-05/0.7653, allocations: 27.36 kB / 0.9567 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.7653, allocations: 3.938 kB / 0.9567 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002183/0.7655, allocations: 78.09 kB / 0.9567 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.7656, allocations: 4.25 kB / 0.9567 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.7656, allocations: 32 / 0.9567 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.7656, allocations: 5.469 kB / 0.9567 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.7657, allocations: 15.91 kB / 0.9568 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.7657, allocations: 3.938 kB / 0.9568 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.293e-05/0.7658, allocations: 14.16 kB / 0.9568 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.7658, allocations: 1.406 kB / 0.9568 GB, free: 5.18 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 7.833e-05/0.7659, allocations: 107.3 kB / 0.9569 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.7659, allocations: 11.08 kB / 0.9569 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.7662, allocations: 87.16 kB / 0.957 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.7662, allocations: 0 / 0.957 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.7662, allocations: 9.016 kB / 0.957 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.7662, allocations: 0 / 0.957 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.7664, allocations: 164.4 kB / 0.9571 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.7664, allocations: 1.062 kB / 0.9571 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.577e-05/0.7665, allocations: 7.969 kB / 0.9572 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.7665, allocations: 4.984 kB / 0.9572 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.497e-06/0.7665, allocations: 0 / 0.9572 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.7665, allocations: 0.8125 kB / 0.9572 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.7665, allocations: 0 / 0.9572 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.7668, allocations: 188.3 kB / 0.9573 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.339e-05/0.7668, allocations: 84.55 kB / 0.9574 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.7668, allocations: 0 / 0.9574 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.162e-05/0.7669, allocations: 12.11 kB / 0.9574 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.767, allocations: 1.031 kB / 0.9574 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.767, allocations: 1.031 kB / 0.9574 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.819e-05/0.7671, allocations: 88.36 kB / 0.9575 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7671, allocations: 0 / 0.9575 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002481/0.7673, allocations: 15.55 kB / 0.9575 GB, free: 4.422 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.0006177/0.7679, allocations: 0.7088 MB / 0.9582 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000293/0.7682, allocations: 61.95 kB / 0.9583 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7683, allocations: 0 / 0.9583 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.7684, allocations: 22.05 kB / 0.9583 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.7687, allocations: 1.125 kB / 0.9583 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005605/0.7692, allocations: 156.5 kB / 0.9585 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.7694, allocations: 0.68 MB / 0.9591 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.046e-05/0.7695, allocations: 1.031 kB / 0.9591 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.7695, allocations: 8.594 kB / 0.9591 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7695, allocations: 0 / 0.9591 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01323/0.7827, allocations: 1.156 MB / 0.9603 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/0.783, allocations: 169 kB / 0.9604 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.463, allocations: 0 / 0.9604 GB, free: 2.043 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