Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SmoothLimit,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_10_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.008422/0.008422, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001692/0.001692, allocations: 201.3 kB / 16.68 MB, free: 5.969 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.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.668/2.668, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 64.09 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3068, allocations: 151.6 MB / 1.166 GB, free: 7.363 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002964/0.3098, allocations: 1.465 MB / 1.168 GB, free: 5.883 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.311, allocations: 0.5618 MB / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.097e-05/0.3111, allocations: 0 / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.853e-05/0.3111, allocations: 0 / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.524e-05/0.3112, allocations: 11.94 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.3115, allocations: 51.81 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.787e-05/0.3116, allocations: 27.86 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.062e-05/0.3117, allocations: 7.984 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.838e-05/0.3118, allocations: 15.94 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.644e-05/0.3119, allocations: 15.92 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.3119, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.312, allocations: 55.95 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.586e-05/0.3121, allocations: 7.984 kB / 1.168 GB, free: 5.121 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.942e-05/0.3121, allocations: 23.8 kB / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.3123, allocations: 60.08 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3123, allocations: 4 kB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3123, allocations: 0 / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.3123, allocations: 0 / 1.168 GB, free: 5.035 MB / 0.92 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.0004126/0.3127, allocations: 347.2 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3128, allocations: 12.03 kB / 1.169 GB, free: 4.637 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.553e-05/0.3128, allocations: 34.73 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.3128, allocations: 4.938 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.3129, allocations: 180.2 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.313, allocations: 384 / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.313, allocations: 384 / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.3131, allocations: 45.81 kB / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.3131, allocations: 0 / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-06/0.3131, allocations: 0 / 1.169 GB, free: 4.324 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3132, allocations: 4 kB / 1.169 GB, free: 4.32 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.332e-05/0.3132, allocations: 19.97 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003089/0.3136, allocations: 252.9 kB / 1.169 GB, free: 4.004 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.59e-05/0.3137, allocations: 34.5 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.139e-05/0.3137, allocations: 20.91 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00087/0.3146, allocations: 477.4 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.3146, allocations: 34.56 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 3.056e-06/0.3146, allocations: 0 / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0002458/0.3149, allocations: 69.5 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.3149, allocations: 55.41 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.748e-05/0.315, allocations: 110 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.3151, allocations: 29.7 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.509e-05/0.3151, allocations: 84.14 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.3151, allocations: 3.953 kB / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/0.3152, allocations: 17.7 kB / 1.17 GB, free: 2.93 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3153, allocations: 318.8 kB / 1.17 GB, free: 2.609 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.753e-05/0.3154, allocations: 11.98 kB / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.714e-05/0.3154, allocations: 8 kB / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.286e-05/0.3155, allocations: 28.91 kB / 1.171 GB, free: 2.559 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3155, allocations: 4 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001241/0.3157, allocations: 57.62 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.3157, allocations: 5.875 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3157, allocations: 3.984 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.3157, allocations: 4 kB / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.762e-05/0.3158, allocations: 4 kB / 1.171 GB, free: 2.477 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3158, allocations: 4.031 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.124e-05/0.3158, allocations: 0 / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.3158, allocations: 3.938 kB / 1.171 GB, free: 2.469 MB / 0.92 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 7.877e-05/0.3159, allocations: 117.8 kB / 1.171 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/0.316, allocations: 3.953 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.3161, allocations: 65.2 kB / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3161, allocations: 0 / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3162, allocations: 3.938 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3162, allocations: 4.031 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.3163, allocations: 161.6 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.3163, allocations: 4 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.644e-05/0.3164, allocations: 7.984 kB / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.3164, allocations: 0 / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-06/0.3164, allocations: 0 / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3164, allocations: 0 / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3164, allocations: 0 / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.3166, allocations: 159.5 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.3166, allocations: 85 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.3167, allocations: 0 / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.233e-05/0.3167, allocations: 3.938 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.27e-05/0.3168, allocations: 4 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.3168, allocations: 0 / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.193e-05/0.3168, allocations: 91.27 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.375e-06/0.3168, allocations: 0 / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002442/0.3171, allocations: 15.94 kB / 1.171 GB, free: 1.652 MB / 0.92 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.0005009/0.3176, allocations: 0.7046 MB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001333/0.3177, allocations: 19.98 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3178, allocations: 4.094 kB / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 4.687e-05/0.3178, allocations: 11.94 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.318, allocations: 7.984 kB / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004404/0.3185, allocations: 152.1 kB / 1.172 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.3187, allocations: 0.6768 MB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.902e-05/0.3188, allocations: 8 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.3188, allocations: 15.48 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of SimCode: time 2.91e-07/0.3188, allocations: 4 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01802/0.3369, allocations: 1.603 MB / 1.174 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.711/8.048, allocations: 13.73 kB / 1.174 GB, free: 14.42 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Examples_SmoothLimit.fmu > Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches