Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.458/2.458, allocations: 393.5 MB / 408.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 187.9 kB / 0.4901 GB, free: 2.219 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.68/1.68, allocations: 223.1 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 92.16 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004043, allocations: 11.88 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.355, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.5667, allocations: 150.8 MB / 1.377 GB, free: 2.641 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/0.567, allocations: 75.95 kB / 1.377 GB, free: 2.566 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004634/0.5717, allocations: 1.434 MB / 1.378 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.545e-06/0.5717, allocations: 0 / 1.378 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.5717, allocations: 0 / 1.378 GB, free: 1.129 MB / 0.8698 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.0004001/0.5721, allocations: 356.1 kB / 1.378 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.5722, allocations: 16.5 kB / 1.378 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.826e-05/0.5722, allocations: 34.56 kB / 1.378 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.5723, allocations: 3.953 kB / 1.378 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.5724, allocations: 174.9 kB / 1.379 GB, free: 472 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.5724, allocations: 3.984 kB / 1.379 GB, free: 468 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.5725, allocations: 0 / 1.379 GB, free: 468 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/0.5726, allocations: 45.69 kB / 1.379 GB, free: 416 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.5726, allocations: 0 / 1.379 GB, free: 416 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.5727, allocations: 0 / 1.379 GB, free: 416 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.5727, allocations: 0 / 1.379 GB, free: 416 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.637e-05/0.5728, allocations: 27.98 kB / 1.379 GB, free: 388 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004341/0.5732, allocations: 260.9 kB / 1.379 GB, free: 76 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.64e-05/0.5733, allocations: 26.58 kB / 1.379 GB, free: 40 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007531/0.5741, allocations: 473.5 kB / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.5741, allocations: 34.56 kB / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.5741, allocations: 4 kB / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2): time 0.000282/0.5744, allocations: 65.62 kB / 1.379 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.5745, allocations: 59.34 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.123e-05/0.5746, allocations: 100.9 kB / 1.38 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.5746, allocations: 25.7 kB / 1.38 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.464e-05/0.5747, allocations: 96.25 kB / 1.38 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.5747, allocations: 3.906 kB / 1.38 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.466e-06/0.5747, allocations: 0 / 1.38 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.5748, allocations: 316.6 kB / 1.38 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.618e-05/0.5749, allocations: 11.98 kB / 1.38 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.678e-05/0.5749, allocations: 12 kB / 1.38 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.833e-05/0.575, allocations: 16.05 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.575, allocations: 0 / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001391/0.5751, allocations: 61.53 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.5752, allocations: 4 kB / 1.38 GB, free: 14.63 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.5752, allocations: 4 kB / 1.38 GB, free: 14.63 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.5752, allocations: 0 / 1.38 GB, free: 14.63 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.576e-05/0.5753, allocations: 4 kB / 1.38 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.5753, allocations: 3.984 kB / 1.38 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.071e-05/0.5754, allocations: 15.98 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.5754, allocations: 0 / 1.38 GB, free: 14.61 MB / 0.8855 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 8.956e-05/0.5755, allocations: 109.8 kB / 1.38 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.5755, allocations: 0 / 1.38 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001934/0.5757, allocations: 73.14 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.5757, allocations: 32 / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.5757, allocations: 4 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.5757, allocations: 3.938 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.5759, allocations: 165.6 kB / 1.38 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.5759, allocations: 0 / 1.38 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.195e-05/0.576, allocations: 4 kB / 1.38 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.576, allocations: 0 / 1.38 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.393e-06/0.576, allocations: 4 kB / 1.381 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.576, allocations: 3.984 kB / 1.381 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.576, allocations: 0 / 1.381 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001676/0.5762, allocations: 159.4 kB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.5762, allocations: 81.05 kB / 1.381 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.5763, allocations: 4 kB / 1.381 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.081e-05/0.5763, allocations: 7.969 kB / 1.381 GB, free: 13.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.5764, allocations: 4 kB / 1.381 GB, free: 13.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-06/0.5764, allocations: 3.969 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.282e-05/0.5764, allocations: 95.56 kB / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5764, allocations: 0 / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002301/0.5767, allocations: 20 kB / 1.381 GB, free: 13.78 MB / 0.8855 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.000526/0.5772, allocations: 0.713 MB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001352/0.5774, allocations: 27.98 kB / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.5774, allocations: 0 / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.941e-05/0.5774, allocations: 19.92 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.5776, allocations: 4 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.5781, allocations: 174.3 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.5783, allocations: 0.6809 MB / 1.382 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.542e-05/0.5783, allocations: 0 / 1.382 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.5784, allocations: 15.42 kB / 1.382 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of SimCode: time 6.61e-07/0.5784, allocations: 0 / 1.382 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01394/0.5923, allocations: 1.343 MB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.5926, allocations: 177 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.539/2.131, allocations: 0 / 1.384 GB, free: 10.59 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat does not exist to compare? outputFormat=mat