Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.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.SmoothMin,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothMin,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin",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.001107/0.001107, 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.001338/0.001338, 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.495/1.495, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.489/2.489, allocations: 390.3 MB / 0.6653 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003813, allocations: 12 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8813/0.8817, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002031/0.8838, allocations: 1.172 MB / 0.9547 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004336/0.8842, allocations: 135.2 kB / 0.9549 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.779e-05/0.8843, allocations: 5.156 kB / 0.9549 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.174e-05/0.8843, allocations: 0 / 0.9549 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.411e-05/0.8844, allocations: 5.516 kB / 0.9549 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.8847, allocations: 27.12 kB / 0.9549 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000108/0.8848, allocations: 19.06 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.8849, allocations: 21.83 kB / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.885e-05/0.885, allocations: 12.12 kB / 0.9549 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.639e-05/0.8851, allocations: 12.2 kB / 0.955 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.8851, allocations: 1.594 kB / 0.955 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.8852, allocations: 34.12 kB / 0.955 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.4e-05/0.8853, allocations: 1.281 kB / 0.955 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.8853, allocations: 36.98 kB / 0.955 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.8855, allocations: 42.55 kB / 0.9551 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.8855, allocations: 0 / 0.9551 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.885e-06/0.8855, allocations: 0 / 0.9551 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.87e-06/0.8855, allocations: 0 / 0.9551 GB, free: 6.914 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005885/0.8861, allocations: 364 kB / 0.9554 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.582e-05/0.8862, allocations: 9.656 kB / 0.9554 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.421e-05/0.8862, allocations: 31.75 kB / 0.9555 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001642/0.8879, allocations: 253.8 kB / 0.9557 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.888, allocations: 165.3 kB / 0.9559 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.8881, allocations: 1.156 kB / 0.9559 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.8881, allocations: 10.31 kB / 0.9559 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008109/0.8889, allocations: 207.6 kB / 0.9561 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.889, allocations: 0 / 0.9561 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.889, allocations: 5 kB / 0.9561 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.889, allocations: 1.062 kB / 0.9561 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.8904, allocations: 329.2 kB / 0.9564 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.8916, allocations: 460.2 kB / 0.9568 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.8933, allocations: 339.6 kB / 0.9571 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.8933, allocations: 1 kB / 0.9571 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.8934, allocations: 31.88 kB / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 2.695e-06/0.8934, allocations: 0 / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.001801/0.8952, allocations: 372.3 kB / 0.9575 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.8953, allocations: 52.78 kB / 0.9576 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.8954, allocations: 129 kB / 0.9577 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.8954, allocations: 25.7 kB / 0.9577 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.8955, allocations: 90.89 kB / 0.9578 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.8955, allocations: 5.281 kB / 0.9578 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.8955, allocations: 0 / 0.9578 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.05e-05/0.8956, allocations: 324.2 kB / 0.9581 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005101/0.8961, allocations: 108.7 kB / 0.9582 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005489/0.8967, allocations: 111.5 kB / 0.9583 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005479/0.8972, allocations: 102.9 kB / 0.9584 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.8973, allocations: 0 / 0.9584 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.001221/0.8985, allocations: 265.6 kB / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.8985, allocations: 6.156 kB / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.8986, allocations: 0 / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.8986, allocations: 0 / 0.9587 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003879/0.899, allocations: 46.66 kB / 0.9587 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.899, allocations: 0.9688 kB / 0.9587 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002928/0.8993, allocations: 35.02 kB / 0.9588 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.8993, allocations: 1.094 kB / 0.9588 GB, free: 4.172 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 (3): * Single equations (assignments): 3 * 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 0.0001187/0.8995, allocations: 122.3 kB / 0.9589 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.8995, allocations: 10.2 kB / 0.9589 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.277e-05/0.8996, allocations: 10.72 kB / 0.9589 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.8996, allocations: 1 kB / 0.9589 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.8996, allocations: 0 / 0.9589 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.8996, allocations: 0.9688 kB / 0.9589 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003204/0.9, allocations: 208.7 kB / 0.9591 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9, allocations: 0 / 0.9591 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003323/0.9003, allocations: 54.86 kB / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.9003, allocations: 1.344 kB / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.9004, allocations: 0 / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.9004, allocations: 1.281 kB / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.9004, allocations: 0 / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.9016, allocations: 352.7 kB / 0.9595 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.9017, allocations: 82.39 kB / 0.9596 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.487e-05/0.9018, allocations: 9.641 kB / 0.9596 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.9021, allocations: 41.95 kB / 0.9596 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.9022, allocations: 5.375 kB / 0.9596 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.9022, allocations: 5.359 kB / 0.9596 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.098e-05/0.9023, allocations: 97.2 kB / 0.9597 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.61e-07/0.9023, allocations: 1.375 kB / 0.9597 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004222/0.9027, allocations: 12 kB / 0.9598 GB, free: 3.312 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 (3): * Single equations (assignments): 3 * 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.001623/0.9044, allocations: 0.8813 MB / 0.9606 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00143/0.9058, allocations: 231.9 kB / 0.9608 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.9058, allocations: 4 kB / 0.9608 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007173/0.9066, allocations: 115.1 kB / 0.9609 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.9069, allocations: 10.17 kB / 0.961 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004296/0.9112, allocations: 0.9075 MB / 0.9618 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.9114, allocations: 0.6892 MB / 0.9625 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001542/0.9115, allocations: 21.42 kB / 0.9625 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.9117, allocations: 17.8 kB / 0.9626 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of SimCode: time 1.172e-06/0.9117, allocations: 0 / 0.9626 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.9293, allocations: 1.628 MB / 0.9641 GB, free: 288 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.9296, allocations: 172.8 kB / 0.9643 GB, free: 40 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.569, allocations: 1.031 kB / 0.9643 GB, free: 40 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat does not exist to compare? outputFormat=mat