Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.SmoothHeaviside,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_11_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.005059/0.005059, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001803/0.001803, allocations: 196 kB / 16.68 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.634/2.634, allocations: 469.8 MB / 0.7425 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.91 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6491/0.6509, allocations: 159.2 MB / 1.22 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002298/0.6532, allocations: 1.426 MB / 1.222 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007232/0.654, allocations: 470.9 kB / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.81e-05/0.654, allocations: 0 / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.697e-05/0.6541, allocations: 3.938 kB / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.241e-05/0.6541, allocations: 7.969 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.6543, allocations: 23.92 kB / 1.222 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.182e-05/0.6544, allocations: 23.92 kB / 1.222 GB, free: 80 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.33e-05/0.6545, allocations: 8 kB / 1.222 GB, free: 72 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.66e-05/0.6545, allocations: 8 kB / 1.222 GB, free: 64 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.717e-05/0.6546, allocations: 15.92 kB / 1.222 GB, free: 48 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.247e-06/0.6546, allocations: 0 / 1.222 GB, free: 48 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.22e-05/0.6547, allocations: 27.91 kB / 1.222 GB, free: 20 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.6547, allocations: 7.984 kB / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 1.937e-05/0.6547, allocations: 11.94 kB / 1.222 GB, free: 0 / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.6548, allocations: 24.03 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.6548, allocations: 0 / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6548, allocations: 0 / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.6548, allocations: 0 / 1.222 GB, free: 15.97 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.0004042/0.6552, allocations: 355 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.6553, allocations: 8.031 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.266e-05/0.6553, allocations: 38.73 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.136e-05/0.6553, allocations: 12.83 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.6555, allocations: 168.4 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.6555, allocations: 4.312 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.6555, allocations: 4.375 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.6557, allocations: 57.73 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.6557, allocations: 4 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-06/0.6557, allocations: 0 / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.6557, allocations: 0 / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.6559, allocations: 35.95 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002913/0.6562, allocations: 244.9 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/0.6563, allocations: 42.5 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.48e-05/0.6564, allocations: 24.89 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000127/0.6565, allocations: 81.11 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.6566, allocations: 34.56 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.463e-06/0.6566, allocations: 0 / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003697/0.6569, allocations: 85.59 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.657, allocations: 59.34 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.6571, allocations: 101.8 kB / 1.223 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.6572, allocations: 25.7 kB / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.6572, allocations: 84.14 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.6572, allocations: 7.953 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-05/0.6573, allocations: 9.719 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001845/0.6575, allocations: 326.9 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.358e-05/0.6576, allocations: 15.98 kB / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.084e-05/0.6576, allocations: 11.98 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.6578, allocations: 44.81 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.6578, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001943/0.658, allocations: 65.73 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.658, allocations: 7.938 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.658, allocations: 0 / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.6581, allocations: 4 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.055e-05/0.6581, allocations: 7.984 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.6582, allocations: 0 / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.462e-05/0.6582, allocations: 7.984 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.6582, allocations: 0 / 1.224 GB, free: 13.79 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 8.372e-05/0.6583, allocations: 121.8 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.6583, allocations: 3.953 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002261/0.6586, allocations: 68.78 kB / 1.224 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.6586, allocations: 3.984 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.6586, allocations: 3.938 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.6586, allocations: 3.984 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.6588, allocations: 157.6 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.6588, allocations: 7.969 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-05/0.6588, allocations: 16.17 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.6588, allocations: 0 / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.6588, allocations: 8 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6589, allocations: 0 / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.6589, allocations: 0 / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.6591, allocations: 163.5 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.6592, allocations: 81.11 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.6592, allocations: 0 / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.449e-05/0.6593, allocations: 11.98 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.997e-05/0.6593, allocations: 0 / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.6593, allocations: 0 / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.404e-05/0.6594, allocations: 83.27 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.6594, allocations: 0 / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002032/0.6596, allocations: 11.94 kB / 1.225 GB, free: 12.95 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.0005781/0.6602, allocations: 0.709 MB / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002112/0.6604, allocations: 39.98 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.6604, allocations: 0 / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.615e-05/0.6605, allocations: 19.92 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.6608, allocations: 10.34 kB / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004039/0.6612, allocations: 142.8 kB / 1.226 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.6616, allocations: 0.6768 MB / 1.226 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.42e-05/0.6616, allocations: 4.125 kB / 1.226 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.986e-05/0.6616, allocations: 11.44 kB / 1.226 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of SimCode: time 2e-07/0.6616, allocations: 0 / 1.226 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.855/1.517, allocations: 1.433 MB / 1.228 GB, free: 9.906 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/15.44, allocations: 14.53 kB / 1.228 GB, free: 9.895 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches