Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.SmoothHeaviside,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_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.001016/0.001021, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009938/0.0009936, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.2 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.89 kB / 0.8126 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.704/0.7055, allocations: 140.4 MB / 0.9497 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002377/0.7079, allocations: 1.429 MB / 0.9511 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006734/0.7086, allocations: 465.2 kB / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.439e-05/0.7086, allocations: 0 / 0.9516 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.877e-05/0.7087, allocations: 3.938 kB / 0.9516 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.688e-05/0.7087, allocations: 5.094 kB / 0.9516 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.7089, allocations: 19.59 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.411e-05/0.709, allocations: 26.27 kB / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.7091, allocations: 6.688 kB / 0.9516 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.974e-05/0.7092, allocations: 11.78 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.911e-05/0.7092, allocations: 15.58 kB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.7093, allocations: 1.188 kB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.217e-05/0.7093, allocations: 18.95 kB / 0.9517 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.251e-05/0.7094, allocations: 7.984 kB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.7094, allocations: 14.77 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.7095, allocations: 33.53 kB / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.7095, allocations: 0 / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7095, allocations: 0 / 0.9517 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.859e-06/0.7095, allocations: 0 / 0.9517 GB, free: 7.57 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.0003647/0.7099, allocations: 343.6 kB / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.7099, allocations: 14.7 kB / 0.9521 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.908e-05/0.71, allocations: 30.75 kB / 0.9521 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.444e-05/0.71, allocations: 6.031 kB / 0.9521 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.94e-05/0.7101, allocations: 171.2 kB / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.7101, allocations: 384 / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-06/0.7101, allocations: 2.062 kB / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.7103, allocations: 56.31 kB / 0.9523 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.7103, allocations: 5.25 kB / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.7103, allocations: 0 / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.7103, allocations: 0 / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001641/0.7105, allocations: 35.42 kB / 0.9523 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002577/0.7108, allocations: 253.5 kB / 0.9526 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.7109, allocations: 48.67 kB / 0.9526 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.289e-05/0.711, allocations: 21.69 kB / 0.9527 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.7111, allocations: 80.3 kB / 0.9527 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.7111, allocations: 35.94 kB / 0.9528 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.7111, allocations: 0 / 0.9528 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003557/0.7115, allocations: 88.92 kB / 0.9529 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/0.7115, allocations: 51.41 kB / 0.9529 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.614e-05/0.7116, allocations: 104.1 kB / 0.953 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.327e-06/0.7116, allocations: 26.83 kB / 0.953 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.802e-05/0.7116, allocations: 93.22 kB / 0.9531 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.7117, allocations: 1.188 kB / 0.9531 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/0.7117, allocations: 15.61 kB / 0.9531 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.563e-05/0.7117, allocations: 323.9 kB / 0.9534 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.99e-05/0.7118, allocations: 13.52 kB / 0.9535 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.119e-05/0.7119, allocations: 17.23 kB / 0.9535 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.712, allocations: 39.81 kB / 0.9535 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.7121, allocations: 1.344 kB / 0.9535 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001797/0.7122, allocations: 71.95 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.7123, allocations: 5.469 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.7123, allocations: 3.984 kB / 0.9536 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.7123, allocations: 1.188 kB / 0.9536 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.032e-05/0.7124, allocations: 5.719 kB / 0.9536 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.7124, allocations: 0 / 0.9536 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.006e-05/0.7125, allocations: 12.48 kB / 0.9536 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.7125, allocations: 0 / 0.9536 GB, free: 5.598 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.92e-05/0.7125, allocations: 119.9 kB / 0.9537 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.412e-05/0.7126, allocations: 1.125 kB / 0.9537 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.7128, allocations: 75.77 kB / 0.9538 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.7128, allocations: 7.922 kB / 0.9538 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.7128, allocations: 0.9688 kB / 0.9538 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.7128, allocations: 0 / 0.9538 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.7129, allocations: 158.3 kB / 0.954 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.713, allocations: 5.438 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.469e-05/0.713, allocations: 9.578 kB / 0.954 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.713, allocations: 0 / 0.954 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.713, allocations: 5.375 kB / 0.954 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.713, allocations: 0 / 0.954 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.713, allocations: 0 / 0.954 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.7132, allocations: 172.6 kB / 0.9541 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.971e-05/0.7133, allocations: 77.11 kB / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.7133, allocations: 1.281 kB / 0.9542 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.331e-05/0.7134, allocations: 7.797 kB / 0.9542 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.7134, allocations: 1.125 kB / 0.9542 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-06/0.7134, allocations: 5.312 kB / 0.9542 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.301e-05/0.7134, allocations: 86.23 kB / 0.9543 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7135, allocations: 5.469 kB / 0.9543 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002159/0.7137, allocations: 5.344 kB / 0.9543 GB, free: 4.848 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 (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.0003932/0.7141, allocations: 0.6984 MB / 0.955 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002028/0.7143, allocations: 40.52 kB / 0.955 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.7143, allocations: 1.219 kB / 0.955 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.3e-05/0.7144, allocations: 22.83 kB / 0.9551 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.7147, allocations: 7.188 kB / 0.9551 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003592/0.715, allocations: 140.2 kB / 0.9552 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.892e-05/0.7152, allocations: 0.685 MB / 0.9559 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.292e-05/0.7152, allocations: 1.094 kB / 0.9559 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/0.7152, allocations: 18.23 kB / 0.9559 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.7152, allocations: 0 / 0.9559 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.7338, allocations: 1.389 MB / 0.9572 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/8.057, allocations: 10.59 kB / 0.9573 GB, free: 2.457 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches