Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",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.258/2.258, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001394/0.001394, allocations: 183.9 kB / 0.4901 GB, free: 2.23 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.548/1.548, allocations: 223.1 MB / 0.7992 GB, free: 14.64 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.0009676/0.0009676, allocations: 104.2 kB / 0.9396 GB, free: 1.816 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004259/0.0004261, allocations: 19.66 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3499, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1994/0.5493, allocations: 150.5 MB / 1.376 GB, free: 2.91 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.5497, allocations: 75.94 kB / 1.376 GB, free: 2.836 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003677/0.5534, allocations: 1.118 MB / 1.377 GB, free: 1.715 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.587e-06/0.5534, allocations: 0 / 1.377 GB, free: 1.715 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.5534, allocations: 4 kB / 1.377 GB, free: 1.711 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.000462/0.5539, allocations: 348.1 kB / 1.378 GB, free: 1.324 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/0.554, allocations: 12.55 kB / 1.378 GB, free: 1.312 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.131e-05/0.554, allocations: 30.56 kB / 1.378 GB, free: 1.273 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.284e-05/0.5541, allocations: 8 kB / 1.378 GB, free: 1.266 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.5542, allocations: 167 kB / 1.378 GB, free: 1.062 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.5542, allocations: 4 kB / 1.378 GB, free: 1.059 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.5543, allocations: 4 kB / 1.378 GB, free: 1.055 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.5545, allocations: 61.59 kB / 1.378 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.5546, allocations: 0 / 1.378 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.5546, allocations: 0 / 1.378 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.5546, allocations: 0 / 1.378 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.5548, allocations: 47.95 kB / 1.378 GB, free: 0.9414 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004621/0.5553, allocations: 260.9 kB / 1.378 GB, free: 0.6367 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.5554, allocations: 50.55 kB / 1.378 GB, free: 0.5781 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001378/0.5556, allocations: 77.11 kB / 1.378 GB, free: 496 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.5556, allocations: 42.56 kB / 1.378 GB, free: 444 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.343e-06/0.5556, allocations: 3.938 kB / 1.378 GB, free: 440 kB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0003863/0.556, allocations: 97.55 kB / 1.379 GB, free: 336 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.556, allocations: 51.41 kB / 1.379 GB, free: 272 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.117e-05/0.5561, allocations: 104.9 kB / 1.379 GB, free: 160 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.5562, allocations: 25.7 kB / 1.379 GB, free: 128 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.925e-05/0.5562, allocations: 92.2 kB / 1.379 GB, free: 32 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.5563, allocations: 3.906 kB / 1.379 GB, free: 28 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-06/0.5563, allocations: 0 / 1.379 GB, free: 28 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5564, allocations: 316.7 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.945e-05/0.5565, allocations: 23.97 kB / 1.379 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.877e-05/0.5566, allocations: 23.98 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.137e-05/0.5567, allocations: 23.92 kB / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5567, allocations: 0 / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002071/0.5569, allocations: 81.72 kB / 1.379 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.5569, allocations: 4 kB / 1.379 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.5569, allocations: 0 / 1.379 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.5569, allocations: 0 / 1.379 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.239e-05/0.557, allocations: 12.23 kB / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.5571, allocations: 0 / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.692e-05/0.5571, allocations: 16.03 kB / 1.379 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-06/0.5571, allocations: 3.953 kB / 1.379 GB, free: 15.52 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 7.796e-05/0.5572, allocations: 117.8 kB / 1.379 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.5572, allocations: 0 / 1.379 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002567/0.5575, allocations: 88.72 kB / 1.379 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.5575, allocations: 0 / 1.379 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5575, allocations: 0 / 1.379 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.5575, allocations: 0 / 1.379 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.5577, allocations: 165.6 kB / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.5577, allocations: 4 kB / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.216e-05/0.5578, allocations: 8 kB / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.5578, allocations: 0 / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.5578, allocations: 0 / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.5578, allocations: 8.016 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5578, allocations: 0 / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.5581, allocations: 179.3 kB / 1.38 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.933e-05/0.5582, allocations: 85.12 kB / 1.38 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.5582, allocations: 0 / 1.38 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.688e-05/0.5583, allocations: 8 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.5583, allocations: 3.984 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.5583, allocations: 0 / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001004/0.5584, allocations: 83.28 kB / 1.38 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5584, allocations: 3.938 kB / 1.38 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00022/0.5587, allocations: 11.94 kB / 1.38 GB, free: 14.67 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.0006175/0.5593, allocations: 0.721 MB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002114/0.5595, allocations: 47.91 kB / 1.381 GB, free: 13.88 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5595, allocations: 0 / 1.381 GB, free: 13.88 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.891e-05/0.5596, allocations: 28.05 kB / 1.381 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.5598, allocations: 7.984 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004304/0.5603, allocations: 134.4 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.5605, allocations: 0.677 MB / 1.382 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.767e-05/0.5606, allocations: 4 kB / 1.382 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.966e-05/0.5606, allocations: 11.5 kB / 1.382 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of SimCode: time 3.31e-07/0.5606, allocations: 0 / 1.382 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01269/0.5733, allocations: 1.135 MB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.5736, allocations: 193.7 kB / 1.383 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.651/2.225, allocations: 3.938 kB / 1.383 GB, free: 11.69 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat does not exist to compare? outputFormat=mat