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.0009099/0.0009097, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001163/0.001163, allocations: 168.7 kB / 15.95 MB, free: 204 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.444/1.444, allocations: 223.2 MB / 240 MB, free: 5.402 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.587/2.587, allocations: 390.4 MB / 0.6655 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004199/0.0004199, allocations: 12 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9014/0.9018, allocations: 142.3 MB / 0.9539 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001776/0.9037, allocations: 1.171 MB / 0.955 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008873/0.9046, allocations: 0.5176 MB / 0.9555 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.705e-05/0.9047, allocations: 5.062 kB / 0.9555 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.865e-05/0.9047, allocations: 7.922 kB / 0.9555 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.336e-05/0.9047, allocations: 1.094 kB / 0.9555 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.905, allocations: 35.59 kB / 0.9555 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.039e-05/0.9051, allocations: 29.73 kB / 0.9556 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.641e-05/0.9052, allocations: 3.031 kB / 0.9556 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.239e-05/0.9053, allocations: 12.89 kB / 0.9556 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.979e-05/0.9053, allocations: 16.02 kB / 0.9556 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.9053, allocations: 1 kB / 0.9556 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.9055, allocations: 56.78 kB / 0.9557 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.728e-06/0.9055, allocations: 5.469 kB / 0.9557 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.468e-05/0.9055, allocations: 26.95 kB / 0.9557 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.9056, allocations: 40.12 kB / 0.9557 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.9056, allocations: 1.438 kB / 0.9557 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.624e-06/0.9056, allocations: 0 / 0.9557 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.9056, allocations: 0 / 0.9557 GB, free: 6.598 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.0003707/0.906, allocations: 350.3 kB / 0.9561 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.9061, allocations: 9.5 kB / 0.9561 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.21e-05/0.9061, allocations: 35.75 kB / 0.9561 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.531e-05/0.9061, allocations: 10.39 kB / 0.9561 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.966e-05/0.9062, allocations: 161.2 kB / 0.9563 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.886e-06/0.9063, allocations: 0 / 0.9563 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-06/0.9063, allocations: 1.188 kB / 0.9563 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.9064, allocations: 52.39 kB / 0.9563 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.9064, allocations: 0 / 0.9563 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.9064, allocations: 7.938 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.453e-06/0.9065, allocations: 1.312 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.118e-05/0.9066, allocations: 26.72 kB / 0.9564 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002917/0.9069, allocations: 246.8 kB / 0.9566 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.28e-05/0.9069, allocations: 38.17 kB / 0.9566 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.592e-05/0.907, allocations: 21.31 kB / 0.9567 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006781/0.9077, allocations: 499.3 kB / 0.9571 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.9077, allocations: 34.56 kB / 0.9572 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.342e-06/0.9077, allocations: 0 / 0.9572 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000242/0.908, allocations: 73.23 kB / 0.9572 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.908, allocations: 51.41 kB / 0.9573 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.542e-05/0.9081, allocations: 115.7 kB / 0.9574 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.925e-06/0.9081, allocations: 25.7 kB / 0.9574 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.123e-05/0.9081, allocations: 86.72 kB / 0.9575 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.9082, allocations: 15.97 kB / 0.9575 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.035e-06/0.9082, allocations: 5.406 kB / 0.9575 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.372e-05/0.9082, allocations: 312.2 kB / 0.9578 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.928e-05/0.9083, allocations: 14.45 kB / 0.9578 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.024e-05/0.9083, allocations: 8.25 kB / 0.9578 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.287e-05/0.9083, allocations: 16.17 kB / 0.9579 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.9084, allocations: 4.062 kB / 0.9579 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001009/0.9085, allocations: 53.5 kB / 0.9579 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.9085, allocations: 5.094 kB / 0.9579 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.9085, allocations: 1.062 kB / 0.9579 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.9085, allocations: 3.953 kB / 0.9579 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.809e-05/0.9086, allocations: 9.484 kB / 0.9579 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.9086, allocations: 1.281 kB / 0.9579 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.077e-05/0.9086, allocations: 10.06 kB / 0.9579 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.9087, allocations: 1.031 kB / 0.9579 GB, free: 4.277 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 6.345e-05/0.9087, allocations: 112.4 kB / 0.958 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.9087, allocations: 4.938 kB / 0.958 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.9089, allocations: 65.3 kB / 0.9581 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.9089, allocations: 5.234 kB / 0.9581 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.9089, allocations: 7.984 kB / 0.9581 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.9089, allocations: 0 / 0.9581 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.9091, allocations: 164.5 kB / 0.9583 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.9091, allocations: 3.938 kB / 0.9583 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.083e-05/0.9091, allocations: 9.438 kB / 0.9583 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.9091, allocations: 0 / 0.9583 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.9091, allocations: 9.453 kB / 0.9583 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.9091, allocations: 0 / 0.9583 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.9091, allocations: 0 / 0.9583 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001268/0.9093, allocations: 159.1 kB / 0.9585 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.918e-05/0.9093, allocations: 81.02 kB / 0.9585 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.9093, allocations: 3.984 kB / 0.9585 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.48e-05/0.9094, allocations: 3.938 kB / 0.9585 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.644e-05/0.9094, allocations: 4 kB / 0.9585 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.9094, allocations: 1.188 kB / 0.9585 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.004e-05/0.9094, allocations: 93.62 kB / 0.9586 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9095, allocations: 0 / 0.9586 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002209/0.9097, allocations: 19.62 kB / 0.9587 GB, free: 3.523 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.0003651/0.9101, allocations: 0.7001 MB / 0.9593 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001218/0.9102, allocations: 25.77 kB / 0.9594 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.9102, allocations: 0 / 0.9594 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.124e-05/0.9102, allocations: 13.23 kB / 0.9594 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.9104, allocations: 6.734 kB / 0.9594 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003892/0.9108, allocations: 178.8 kB / 0.9595 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.911, allocations: 0.6789 MB / 0.9602 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.329e-05/0.911, allocations: 2.312 kB / 0.9602 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/0.911, allocations: 12.72 kB / 0.9602 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.911, allocations: 0 / 0.9602 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0154/0.9264, allocations: 1.384 MB / 0.9616 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/0.9267, allocations: 180.4 kB / 0.9618 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.585, allocations: 3.938 kB / 0.9618 GB, free: 1.02 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