Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.005379/0.005379, allocations: 97 kB / 15.73 MB, free: 5.949 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.001235/0.001235, allocations: 192.9 kB / 16.67 MB, free: 5.871 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.457/2.457, allocations: 437.1 MB / 0.7105 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 67.84 kB / 1.018 GB, free: 9.797 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8104/0.8118, allocations: 151.6 MB / 1.166 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0017/0.8135, allocations: 0.5844 MB / 1.167 GB, free: 3.254 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.8149, allocations: 1.101 MB / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.584e-05/0.8149, allocations: 0 / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.282e-05/0.815, allocations: 0 / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002527/0.8152, allocations: 31.91 kB / 1.168 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 4.609e-06/0.8152, allocations: 3.938 kB / 1.168 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 3.823e-05/0.8153, allocations: 3.938 kB / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.923e-05/0.8153, allocations: 0 / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.39e-05/0.8153, allocations: 4 kB / 1.168 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.043e-05/0.8154, allocations: 0 / 1.168 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 7.293e-06/0.8154, allocations: 0 / 1.168 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.8155, allocations: 19.97 kB / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.813e-06/0.8155, allocations: 7.922 kB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.032e-05/0.8155, allocations: 11.94 kB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 8.021e-05/0.8156, allocations: 11.98 kB / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8156, allocations: 0 / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.273e-06/0.8156, allocations: 0 / 1.168 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.8157, allocations: 0 / 1.168 GB, free: 2.047 MB / 0.8887 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.000278/0.8159, allocations: 315.7 kB / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.816, allocations: 12.92 kB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.102e-05/0.816, allocations: 30.75 kB / 1.168 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.8161, allocations: 12.81 kB / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.289e-05/0.8162, allocations: 160.4 kB / 1.168 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.8162, allocations: 4.359 kB / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.8162, allocations: 8.375 kB / 1.168 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.353e-05/0.8163, allocations: 45.75 kB / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.8163, allocations: 0 / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-06/0.8163, allocations: 0 / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.8163, allocations: 0 / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.886e-05/0.8164, allocations: 8 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.8165, allocations: 157.6 kB / 1.169 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.8167, allocations: 34.72 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.271e-05/0.8167, allocations: 12.84 kB / 1.169 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.8169, allocations: 77.11 kB / 1.169 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.8169, allocations: 42.44 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.8169, allocations: 0 / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.004263/0.8212, allocations: 0.5715 MB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.8213, allocations: 55.41 kB / 1.169 GB, free: 324 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.8214, allocations: 89.86 kB / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.8214, allocations: 29.7 kB / 1.17 GB, free: 188 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.776e-05/0.8214, allocations: 84.12 kB / 1.17 GB, free: 100 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.8215, allocations: 15.86 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.8215, allocations: 17.72 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.8217, allocations: 314.8 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006127/0.8223, allocations: 87.95 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006339/0.823, allocations: 98.53 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.8242, allocations: 194.4 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.8242, allocations: 4 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001263/0.8255, allocations: 213.5 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.8255, allocations: 4 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.8255, allocations: 0 / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.8255, allocations: 4 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.8259, allocations: 48 kB / 1.171 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.826, allocations: 4 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.8263, allocations: 39.98 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.8263, allocations: 4 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.617e-05/0.8264, allocations: 113.8 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.8265, allocations: 11.94 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.8278, allocations: 233.1 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.8279, allocations: 0 / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.8279, allocations: 0 / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.8279, allocations: 0 / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001502/0.8294, allocations: 466.8 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.8294, allocations: 4.25 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.8298, allocations: 47.97 kB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.8298, allocations: 0 / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.8298, allocations: 7.938 kB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.8298, allocations: 0 / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.8298, allocations: 4 kB / 1.171 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.8311, allocations: 311.3 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-05/0.8312, allocations: 77.11 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.8312, allocations: 11.98 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.8316, allocations: 35.98 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.345e-05/0.8316, allocations: 4 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.8316, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.586e-05/0.8317, allocations: 79.27 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8317, allocations: 0 / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002528/0.8319, allocations: 15.94 kB / 1.172 GB, free: 13.52 MB / 0.9044 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 (5): * Single equations (assignments): 5 * 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.001618/0.8336, allocations: 0.84 MB / 1.173 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001266/0.8348, allocations: 175.9 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.8349, allocations: 4 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006008/0.8355, allocations: 96.06 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.8357, allocations: 5.5 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.837, allocations: 242.4 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.8373, allocations: 0.6768 MB / 1.174 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001791/0.8374, allocations: 31.98 kB / 1.174 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.149e-05/0.8375, allocations: 11.44 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.8375, allocations: 0 / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.8556, allocations: 1.646 MB / 1.176 GB, free: 9.859 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/8.539, allocations: 11.14 kB / 1.176 GB, free: 9.852 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches