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/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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005145/0.005145, allocations: 105.5 kB / 15.74 MB, free: 6.02 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.001222/0.001222, allocations: 193.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.662/2.662, allocations: 472.7 MB / 0.7453 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 67.89 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7657/0.7675, allocations: 159.9 MB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002735/0.7703, allocations: 1.435 MB / 1.227 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.7715, allocations: 474.9 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.514e-05/0.7716, allocations: 0 / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.955e-05/0.7717, allocations: 3.938 kB / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.688e-05/0.7718, allocations: 0 / 1.227 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002961/0.7721, allocations: 23.92 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.7722, allocations: 31.91 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.7723, allocations: 8 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.7724, allocations: 11.92 kB / 1.227 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.633e-05/0.7725, allocations: 8 kB / 1.227 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.7725, allocations: 4 kB / 1.227 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.7727, allocations: 27.91 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.7727, allocations: 3.938 kB / 1.227 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.943e-05/0.7727, allocations: 15.92 kB / 1.227 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.7729, allocations: 27.95 kB / 1.227 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.7729, allocations: 0 / 1.227 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.934e-06/0.7729, allocations: 0 / 1.227 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.7729, allocations: 0 / 1.227 GB, free: 11.38 MB / 0.9512 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.0004826/0.7734, allocations: 362.9 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.7735, allocations: 8.031 kB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.776e-05/0.7735, allocations: 34.75 kB / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.7736, allocations: 4.891 kB / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.7737, allocations: 160.4 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.7737, allocations: 4.375 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.7737, allocations: 4.312 kB / 1.228 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.7739, allocations: 57.8 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.774, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.774, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.774, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.7742, allocations: 39.94 kB / 1.228 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.7745, allocations: 252.9 kB / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.7747, allocations: 42.5 kB / 1.228 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.7748, allocations: 20.91 kB / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.7749, allocations: 85.09 kB / 1.228 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.775, allocations: 30.56 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.775, allocations: 0 / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003747/0.7753, allocations: 89.59 kB / 1.228 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.7754, allocations: 51.41 kB / 1.228 GB, free: 9.953 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.225e-05/0.7755, allocations: 101.8 kB / 1.228 GB, free: 9.844 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.7755, allocations: 29.7 kB / 1.229 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.7756, allocations: 88.12 kB / 1.229 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.7756, allocations: 7.938 kB / 1.229 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-05/0.7756, allocations: 13.72 kB / 1.229 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.7757, allocations: 322.9 kB / 1.229 GB, free: 9.367 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.247e-05/0.7758, allocations: 11.98 kB / 1.229 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.018e-05/0.7759, allocations: 23.97 kB / 1.229 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.7761, allocations: 32.83 kB / 1.229 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.7761, allocations: 0 / 1.229 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001937/0.7763, allocations: 69.72 kB / 1.229 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.7763, allocations: 8 kB / 1.229 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.7763, allocations: 0 / 1.229 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.7763, allocations: 0 / 1.229 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.026e-05/0.7764, allocations: 15.86 kB / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.7764, allocations: 0 / 1.229 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.488e-05/0.7765, allocations: 4 kB / 1.229 GB, free: 9.195 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.7765, allocations: 4 kB / 1.229 GB, free: 9.191 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.715e-05/0.7766, allocations: 122.3 kB / 1.229 GB, free: 9.062 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.7767, allocations: 4.203 kB / 1.229 GB, free: 9.059 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002473/0.7769, allocations: 72.78 kB / 1.229 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.7769, allocations: 0 / 1.229 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.7769, allocations: 7.938 kB / 1.229 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.7769, allocations: 0 / 1.229 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.7771, allocations: 161.6 kB / 1.229 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.7771, allocations: 8.016 kB / 1.229 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.038e-05/0.7772, allocations: 4 kB / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.7772, allocations: 3.938 kB / 1.229 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-06/0.7772, allocations: 0 / 1.229 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.7772, allocations: 4 kB / 1.229 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7773, allocations: 0 / 1.229 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.7775, allocations: 167.5 kB / 1.23 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.814e-05/0.7776, allocations: 81.09 kB / 1.23 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.7776, allocations: 0 / 1.23 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.634e-05/0.7777, allocations: 4 kB / 1.23 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.7777, allocations: 3.984 kB / 1.23 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-06/0.7777, allocations: 4 kB / 1.23 GB, free: 8.457 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.161e-05/0.7778, allocations: 83.28 kB / 1.23 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7778, allocations: 0 / 1.23 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002387/0.778, allocations: 7.938 kB / 1.23 GB, free: 8.367 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006245/0.7787, allocations: 0.7045 MB / 1.23 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002392/0.7789, allocations: 39.98 kB / 1.231 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.7789, allocations: 0 / 1.231 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.858e-05/0.779, allocations: 19.98 kB / 1.231 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.7794, allocations: 9.078 kB / 1.231 GB, free: 7.566 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004746/0.7799, allocations: 150.9 kB / 1.231 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.7802, allocations: 0.6768 MB / 1.231 GB, free: 6.676 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.982e-05/0.7802, allocations: 8.062 kB / 1.231 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.059e-05/0.7802, allocations: 15.44 kB / 1.231 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.7802, allocations: 0 / 1.231 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.7997, allocations: 1.431 MB / 1.233 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.543/8.342, allocations: 12.06 kB / 1.233 GB, free: 5.301 MB / 0.9512 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches