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.0009386/0.0009386, allocations: 100.1 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.000934/0.0009341, allocations: 177.3 kB / 15.95 MB, free: 216 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.292/1.292, allocations: 223.2 MB / 239.9 MB, free: 5.449 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.345/2.345, allocations: 390.3 MB / 0.6653 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003027, allocations: 8 kB / 0.8146 GB, free: 14.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6209/0.6212, allocations: 142.3 MB / 0.9536 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.0005697/0.6218, allocations: 313.5 kB / 0.9539 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00015/0.622, allocations: 28.83 kB / 0.9539 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.766e-06/0.622, allocations: 4 kB / 0.9539 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.065e-06/0.622, allocations: 3.938 kB / 0.9539 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.959e-06/0.622, allocations: 0 / 0.9539 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.6223, allocations: 8.422 kB / 0.9539 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.113e-05/0.6223, allocations: 5.25 kB / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.424e-05/0.6223, allocations: 1.125 kB / 0.954 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.322e-05/0.6224, allocations: 5.203 kB / 0.954 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.887e-05/0.6224, allocations: 1.219 kB / 0.954 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.915e-06/0.6224, allocations: 0 / 0.954 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.388e-05/0.6225, allocations: 19.33 kB / 0.954 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.851e-06/0.6225, allocations: 4 kB / 0.954 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.816e-05/0.6225, allocations: 27.11 kB / 0.954 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.067e-05/0.6226, allocations: 7.859 kB / 0.954 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.6226, allocations: 1.312 kB / 0.954 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6226, allocations: 0 / 0.954 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.905e-06/0.6226, allocations: 0 / 0.954 GB, free: 7.766 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.0001636/0.6228, allocations: 309.8 kB / 0.9543 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.6228, allocations: 9.188 kB / 0.9543 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.387e-05/0.6229, allocations: 34.5 kB / 0.9544 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.8e-05/0.6229, allocations: 5.422 kB / 0.9544 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.055e-05/0.6229, allocations: 163.1 kB / 0.9545 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.151e-06/0.6229, allocations: 0 / 0.9545 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-06/0.6229, allocations: 1.188 kB / 0.9545 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.244e-05/0.623, allocations: 39.12 kB / 0.9545 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.623, allocations: 1.406 kB / 0.9546 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-06/0.623, allocations: 0 / 0.9546 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.6231, allocations: 0 / 0.9546 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.818e-05/0.6231, allocations: 5.453 kB / 0.9546 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.277e-05/0.6232, allocations: 143.2 kB / 0.9547 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.798e-05/0.6232, allocations: 25.23 kB / 0.9547 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.6232, allocations: 1.375 kB / 0.9547 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.168e-05/0.6233, allocations: 34.56 kB / 0.9548 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.6233, allocations: 1.438 kB / 0.9548 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001037/0.6234, allocations: 34 kB / 0.9548 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.971e-05/0.6234, allocations: 52.75 kB / 0.9548 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.614e-05/0.6234, allocations: 93.98 kB / 0.9549 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.921e-06/0.6234, allocations: 29.64 kB / 0.955 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.095e-05/0.6234, allocations: 81.7 kB / 0.955 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.6235, allocations: 3.906 kB / 0.955 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.6235, allocations: 0 / 0.955 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.808e-05/0.6235, allocations: 320.1 kB / 0.9553 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.965e-06/0.6235, allocations: 0 / 0.9553 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.249e-06/0.6235, allocations: 5.406 kB / 0.9553 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.49e-05/0.6236, allocations: 5.453 kB / 0.9554 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.6236, allocations: 5.375 kB / 0.9554 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.807e-05/0.6236, allocations: 30.67 kB / 0.9554 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.6236, allocations: 5.094 kB / 0.9554 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.6237, allocations: 0 / 0.9554 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.438e-06/0.6237, allocations: 1.375 kB / 0.9554 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.722e-05/0.6237, allocations: 1.75 kB / 0.9554 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.6237, allocations: 0 / 0.9554 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.317e-05/0.6237, allocations: 1.438 kB / 0.9554 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.6238, allocations: 1.344 kB / 0.9554 GB, free: 6.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 (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 4.056e-05/0.6238, allocations: 123.8 kB / 0.9555 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-06/0.6238, allocations: 1.781 kB / 0.9555 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.371e-05/0.6239, allocations: 42.75 kB / 0.9556 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.6239, allocations: 0 / 0.9556 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.6239, allocations: 0 / 0.9556 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.6239, allocations: 5.391 kB / 0.9556 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.719e-05/0.624, allocations: 145.6 kB / 0.9557 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.624, allocations: 5.125 kB / 0.9557 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.961e-05/0.624, allocations: 5.844 kB / 0.9557 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.624, allocations: 0 / 0.9557 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-06/0.624, allocations: 0.875 kB / 0.9557 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.624, allocations: 1.125 kB / 0.9557 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.624, allocations: 3.938 kB / 0.9557 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.965e-05/0.6241, allocations: 67.23 kB / 0.9558 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.205e-05/0.6241, allocations: 82.05 kB / 0.9559 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.6241, allocations: 1 kB / 0.9559 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.108e-05/0.6241, allocations: 0 / 0.9559 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.6242, allocations: 0.875 kB / 0.9559 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-06/0.6242, allocations: 0.875 kB / 0.9559 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.071e-05/0.6242, allocations: 80.27 kB / 0.9559 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.6242, allocations: 0 / 0.9559 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001886/0.6244, allocations: 8.219 kB / 0.9559 GB, free: 5.543 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.0002258/0.6246, allocations: 0.6106 MB / 0.9565 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.007e-05/0.6247, allocations: 7.656 kB / 0.9565 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.6247, allocations: 3.938 kB / 0.9566 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.853e-06/0.6247, allocations: 2.906 kB / 0.9566 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.863e-05/0.6248, allocations: 3.062 kB / 0.9566 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002148/0.625, allocations: 102.2 kB / 0.9567 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.165e-05/0.6251, allocations: 0.6714 MB / 0.9573 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.86e-05/0.6251, allocations: 2.344 kB / 0.9573 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.336e-05/0.6251, allocations: 8.625 kB / 0.9573 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.6252, allocations: 0 / 0.9573 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009472/0.6346, allocations: 0.817 MB / 0.9581 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001187/0.6348, allocations: 189.6 kB / 0.9583 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.543/2.177, allocations: 4 kB / 0.9583 GB, free: 3.465 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