Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_10_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.001488/0.001488, 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.001653/0.001653, allocations: 195.9 kB / 16.53 MB, free: 6.664 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.542/2.542, allocations: 437 MB / 0.7104 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.91 kB / 0.8693 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6425/0.6438, allocations: 151.6 MB / 1.017 GB, free: 2.543 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002533/0.6464, allocations: 1.443 MB / 1.019 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006641/0.6471, allocations: 463.8 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.887e-05/0.6471, allocations: 0 / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.563e-05/0.6472, allocations: 7.938 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.784e-05/0.6472, allocations: 3.938 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001784/0.6474, allocations: 23.92 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.556e-05/0.6475, allocations: 23.98 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.853e-05/0.6476, allocations: 4 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.402e-05/0.6476, allocations: 19.86 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.212e-05/0.6477, allocations: 4 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.6477, allocations: 0 / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.829e-05/0.6477, allocations: 31.95 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.101e-05/0.6478, allocations: 3.938 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.266e-05/0.6478, allocations: 11.94 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.174e-05/0.6479, allocations: 35.94 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.6479, allocations: 4 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.343e-06/0.6479, allocations: 0 / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.6479, allocations: 3.938 kB / 1.019 GB, free: 464 kB / 0.7637 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.000367/0.6483, allocations: 337.7 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.6483, allocations: 12.03 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.418e-05/0.6484, allocations: 34.69 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.6484, allocations: 4.844 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/0.6485, allocations: 172.3 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.6485, allocations: 384 / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/0.6485, allocations: 4.375 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.6487, allocations: 53.8 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.6487, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.6487, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.6487, allocations: 4 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.6489, allocations: 35.94 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002731/0.6492, allocations: 256.9 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.6493, allocations: 42.55 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.47e-05/0.6494, allocations: 16.91 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.6495, allocations: 89.09 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.6496, allocations: 34.56 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.6496, allocations: 4 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003401/0.6499, allocations: 85.48 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.65, allocations: 55.41 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.389e-05/0.65, allocations: 97.86 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.6501, allocations: 25.7 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.6501, allocations: 88.12 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.592e-05/0.6501, allocations: 12.03 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-05/0.6502, allocations: 13.72 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.175e-05/0.6503, allocations: 314.8 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.459e-05/0.6503, allocations: 15.98 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.466e-05/0.6504, allocations: 19.97 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.6506, allocations: 40.89 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.6506, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001938/0.6508, allocations: 69.59 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.6508, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.6508, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.6508, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.782e-05/0.6509, allocations: 11.98 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-06/0.6509, allocations: 4.031 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.746e-05/0.651, allocations: 8 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-06/0.651, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 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 6.768e-05/0.6511, allocations: 109.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.6511, allocations: 11.92 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002402/0.6514, allocations: 72.72 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.6514, allocations: 11.97 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.6514, allocations: 256 / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.6514, allocations: 0 / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.6515, allocations: 161.6 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.6515, allocations: 3.984 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.564e-05/0.6516, allocations: 8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.6516, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.6516, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.6516, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6516, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.6519, allocations: 171.4 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/0.6519, allocations: 81.09 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.6519, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.952e-05/0.652, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.652, allocations: 11.92 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.6521, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.431e-05/0.6521, allocations: 87.31 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6521, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002206/0.6523, allocations: 8 kB / 1.022 GB, free: 13.45 MB / 0.7794 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.0005058/0.6528, allocations: 0.6968 MB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002144/0.6531, allocations: 43.89 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.6531, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.39e-05/0.6532, allocations: 19.98 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.6535, allocations: 13.48 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000407/0.6539, allocations: 135.3 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.6541, allocations: 0.6768 MB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.141e-05/0.6542, allocations: 0 / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.697e-05/0.6542, allocations: 15.44 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6542, allocations: 0 / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.6706, allocations: 1.399 MB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.11/7.781, allocations: 14.25 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches