Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothLimit",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.001005/0.001005, allocations: 100.2 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.001037/0.001037, 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.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.355 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.451/2.451, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003696, allocations: 19.98 kB / 0.8146 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8977/0.8981, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002165/0.9003, allocations: 1.162 MB / 0.9547 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.9014, allocations: 0.5147 MB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.719e-05/0.9015, allocations: 3.938 kB / 0.9552 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.9015, allocations: 0 / 0.9552 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.143e-05/0.9016, allocations: 9.484 kB / 0.9552 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.9019, allocations: 39.45 kB / 0.9553 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.388e-05/0.902, allocations: 17.5 kB / 0.9553 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.9021, allocations: 7.312 kB / 0.9553 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.665e-05/0.9022, allocations: 13.39 kB / 0.9553 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.637e-05/0.9023, allocations: 16.3 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.9023, allocations: 1.062 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.9024, allocations: 45.48 kB / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.838e-06/0.9024, allocations: 1.062 kB / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.5e-05/0.9024, allocations: 35.92 kB / 0.9554 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.9026, allocations: 48.14 kB / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.9026, allocations: 0 / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.064e-06/0.9026, allocations: 0 / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.258e-06/0.9026, allocations: 0 / 0.9555 GB, free: 6.594 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.0003945/0.903, allocations: 343.7 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.9031, allocations: 8.344 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.9031, allocations: 35.81 kB / 0.9558 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.9031, allocations: 9.266 kB / 0.9558 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.535e-05/0.9032, allocations: 173.9 kB / 0.956 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.9032, allocations: 1.406 kB / 0.956 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.9033, allocations: 0 / 0.956 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.9034, allocations: 44.09 kB / 0.956 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.9034, allocations: 0 / 0.956 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.9034, allocations: 0 / 0.956 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.9034, allocations: 1 kB / 0.956 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.9036, allocations: 30.88 kB / 0.9561 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003203/0.9039, allocations: 255.3 kB / 0.9563 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.349e-05/0.904, allocations: 33.69 kB / 0.9563 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007413/0.9047, allocations: 0.4914 MB / 0.9568 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.9048, allocations: 31.75 kB / 0.9569 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.9048, allocations: 3.938 kB / 0.9569 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002755/0.9051, allocations: 79.88 kB / 0.9569 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.9051, allocations: 53.47 kB / 0.957 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.612e-05/0.9052, allocations: 110.8 kB / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.9052, allocations: 25.7 kB / 0.9571 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.353e-05/0.9052, allocations: 89.59 kB / 0.9572 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.9053, allocations: 5.344 kB / 0.9572 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-06/0.9053, allocations: 0 / 0.9572 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.473e-05/0.9053, allocations: 316.3 kB / 0.9575 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.81e-05/0.9054, allocations: 10.98 kB / 0.9575 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.956e-05/0.9055, allocations: 16.53 kB / 0.9575 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.72e-05/0.9055, allocations: 11.86 kB / 0.9575 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.9055, allocations: 0 / 0.9575 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000118/0.9056, allocations: 58.47 kB / 0.9576 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.9057, allocations: 5.594 kB / 0.9576 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.9057, allocations: 1.156 kB / 0.9576 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.9057, allocations: 4.094 kB / 0.9576 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.2e-05/0.9058, allocations: 13.56 kB / 0.9576 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.9058, allocations: 0 / 0.9576 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.279e-05/0.9058, allocations: 6.812 kB / 0.9576 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.9059, allocations: 5.312 kB / 0.9576 GB, free: 4.289 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.079e-05/0.9059, allocations: 108.4 kB / 0.9577 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.906, allocations: 9.312 kB / 0.9578 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001763/0.9061, allocations: 73.17 kB / 0.9578 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.9062, allocations: 0 / 0.9578 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.9062, allocations: 5.047 kB / 0.9578 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.9062, allocations: 0 / 0.9578 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.9063, allocations: 164.1 kB / 0.958 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.9063, allocations: 0 / 0.958 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.332e-05/0.9064, allocations: 5.781 kB / 0.958 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.9064, allocations: 0 / 0.958 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.9064, allocations: 1.5 kB / 0.958 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.9064, allocations: 8.016 kB / 0.958 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.9064, allocations: 3.984 kB / 0.958 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001643/0.9066, allocations: 153 kB / 0.9581 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.737e-05/0.9066, allocations: 82.33 kB / 0.9582 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.9066, allocations: 5.469 kB / 0.9582 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.854e-05/0.9067, allocations: 9.328 kB / 0.9582 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.9067, allocations: 1.312 kB / 0.9582 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.9068, allocations: 1.219 kB / 0.9582 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.701e-05/0.9068, allocations: 90.05 kB / 0.9583 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9068, allocations: 0 / 0.9583 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002412/0.907, allocations: 19.48 kB / 0.9583 GB, free: 3.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 (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.0004644/0.9075, allocations: 0.7064 MB / 0.959 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001506/0.9077, allocations: 22.39 kB / 0.9591 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.9077, allocations: 1.062 kB / 0.9591 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.99e-05/0.9077, allocations: 25.55 kB / 0.9591 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001459/0.9079, allocations: 1.281 kB / 0.9591 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004145/0.9083, allocations: 168.5 kB / 0.9592 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.9085, allocations: 0.6811 MB / 0.9599 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.436e-05/0.9085, allocations: 5.531 kB / 0.9599 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.056e-05/0.9085, allocations: 16.55 kB / 0.9599 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of SimCode: time 2.81e-07/0.9085, allocations: 3.938 kB / 0.9599 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.9205, allocations: 1.354 MB / 0.9613 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.9208, allocations: 175 kB / 0.9614 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/2.597, allocations: 0 / 0.9614 GB, free: 1.055 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothLimit.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat does not exist to compare? outputFormat=mat