Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothLimit",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.008089/0.008089, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001697/0.001697, allocations: 194.2 kB / 16.67 MB, free: 5.918 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.173/2.173, allocations: 390.3 MB / 0.6648 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 63.91 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7302/0.7324, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003075/0.7355, allocations: 1.446 MB / 1.089 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.7366, allocations: 0.573 MB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.656e-05/0.7366, allocations: 0 / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.96e-05/0.7367, allocations: 4.781 kB / 1.089 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.7368, allocations: 5.281 kB / 1.089 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.7371, allocations: 48.72 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.267e-05/0.7372, allocations: 35.55 kB / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.7373, allocations: 8.531 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.816e-05/0.7374, allocations: 15.59 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.353e-05/0.7375, allocations: 11 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.7375, allocations: 1.406 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.7376, allocations: 54.23 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.7377, allocations: 5.688 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.7377, allocations: 15.97 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.7379, allocations: 62.78 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.7379, allocations: 5.438 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7379, allocations: 0 / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.323e-06/0.7379, allocations: 0 / 1.09 GB, free: 3.754 MB / 0.8575 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.0003972/0.7383, allocations: 350.5 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.7384, allocations: 9.656 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.634e-05/0.7384, allocations: 35.69 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.7384, allocations: 11.94 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.93e-05/0.7385, allocations: 167.4 kB / 1.09 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.7385, allocations: 1.375 kB / 1.09 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.7385, allocations: 6.172 kB / 1.09 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.7387, allocations: 50.11 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.7387, allocations: 1.125 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.7387, allocations: 3.938 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.7387, allocations: 1.062 kB / 1.09 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.342e-05/0.7388, allocations: 19.61 kB / 1.09 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000278/0.7391, allocations: 254.2 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.809e-05/0.7392, allocations: 35.02 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.677e-05/0.7393, allocations: 17.5 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000735/0.74, allocations: 471.2 kB / 1.091 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/0.74, allocations: 35.36 kB / 1.091 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.74, allocations: 1.219 kB / 1.091 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.000224/0.7403, allocations: 69.94 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.886e-05/0.7403, allocations: 51.41 kB / 1.091 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.915e-05/0.7404, allocations: 112 kB / 1.091 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.843e-06/0.7404, allocations: 25.7 kB / 1.091 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.499e-05/0.7404, allocations: 91.47 kB / 1.091 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.7404, allocations: 9.969 kB / 1.091 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.7405, allocations: 16.08 kB / 1.091 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.03e-05/0.7405, allocations: 317.3 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.264e-05/0.7406, allocations: 11.89 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.452e-05/0.7406, allocations: 8.125 kB / 1.092 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.726e-05/0.7407, allocations: 28.41 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7407, allocations: 0.6875 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001265/0.7408, allocations: 56.67 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.7408, allocations: 4.562 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.7408, allocations: 0.8438 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.7409, allocations: 1.031 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.002e-05/0.7409, allocations: 9.703 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.7409, allocations: 0.625 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/0.741, allocations: 6.938 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.741, allocations: 4.75 kB / 1.092 GB, free: 1.5 MB / 0.8575 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.614e-05/0.741, allocations: 113.4 kB / 1.092 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.7411, allocations: 5.562 kB / 1.092 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.7412, allocations: 64.8 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.7412, allocations: 2.297 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.7413, allocations: 0 / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.7413, allocations: 0 / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.7414, allocations: 166.1 kB / 1.092 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.7414, allocations: 5.625 kB / 1.092 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.152e-05/0.7414, allocations: 6.438 kB / 1.092 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.7414, allocations: 0.6094 kB / 1.092 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.7415, allocations: 4 kB / 1.092 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.7415, allocations: 1.812 kB / 1.092 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.7415, allocations: 0 / 1.092 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.7416, allocations: 155.6 kB / 1.092 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.849e-05/0.7416, allocations: 87.22 kB / 1.092 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.7416, allocations: 0.6562 kB / 1.092 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.883e-05/0.7417, allocations: 1.859 kB / 1.092 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.058e-05/0.7417, allocations: 7.141 kB / 1.092 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.7418, allocations: 0.5156 kB / 1.092 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.659e-05/0.7418, allocations: 88.58 kB / 1.093 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.51e-07/0.7418, allocations: 0 / 1.093 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002359/0.742, allocations: 20.8 kB / 1.093 GB, free: 0.7852 MB / 0.8575 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.0004938/0.7425, allocations: 0.694 MB / 1.093 GB, free: 16.12 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001389/0.7427, allocations: 26.53 kB / 1.093 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.7427, allocations: 0 / 1.093 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.658e-05/0.7427, allocations: 18.05 kB / 1.093 GB, free: 16.1 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.743, allocations: 2.812 kB / 1.093 GB, free: 16.1 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.7434, allocations: 158.2 kB / 1.093 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.7436, allocations: 0.6821 MB / 1.094 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.389e-05/0.7436, allocations: 6.406 kB / 1.094 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.7437, allocations: 14.19 kB / 1.094 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.7437, allocations: 0 / 1.094 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01683/0.7605, allocations: 1.616 MB / 1.096 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.41/8.17, allocations: 5.703 kB / 1.096 GB, free: 14.81 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_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_SmoothLimit.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches