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.001293/0.001293, 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.001228/0.001228, allocations: 196.7 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.402/2.402, allocations: 390.3 MB / 0.6647 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.91 kB / 0.8126 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7007/0.7021, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002274/0.7045, allocations: 1.451 MB / 0.9511 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007165/0.7052, allocations: 0.5586 MB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.083e-05/0.7052, allocations: 0 / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.384e-05/0.7053, allocations: 0 / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.98e-05/0.7053, allocations: 12.77 kB / 0.9517 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002377/0.7056, allocations: 47.81 kB / 0.9517 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.065e-05/0.7056, allocations: 30.44 kB / 0.9518 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.632e-05/0.7057, allocations: 7.766 kB / 0.9518 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.176e-05/0.7058, allocations: 14.5 kB / 0.9518 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.544e-05/0.7059, allocations: 19.67 kB / 0.9518 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.7059, allocations: 2.438 kB / 0.9518 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.706, allocations: 53.59 kB / 0.9519 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.706, allocations: 5.25 kB / 0.9519 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.224e-05/0.706, allocations: 14.56 kB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.7062, allocations: 62.73 kB / 0.9519 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.7062, allocations: 0 / 0.9519 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7062, allocations: 0 / 0.9519 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.93e-06/0.7062, allocations: 1.25 kB / 0.9519 GB, free: 7.422 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.000303/0.7065, allocations: 358.4 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.7065, allocations: 9.406 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.32e-05/0.7066, allocations: 35.78 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.334e-05/0.7066, allocations: 2.906 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.353e-05/0.7067, allocations: 174.4 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.7067, allocations: 1.438 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.7067, allocations: 5.531 kB / 0.9525 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.7068, allocations: 46.94 kB / 0.9525 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.7068, allocations: 0 / 0.9525 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.7068, allocations: 0 / 0.9525 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.7068, allocations: 4 kB / 0.9525 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.771e-05/0.7069, allocations: 20.3 kB / 0.9526 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002278/0.7072, allocations: 254.8 kB / 0.9528 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.614e-05/0.7072, allocations: 35.88 kB / 0.9528 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.257e-05/0.7073, allocations: 16.39 kB / 0.9529 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000674/0.708, allocations: 485 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.708, allocations: 31.91 kB / 0.9534 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.001e-06/0.708, allocations: 0 / 0.9534 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002083/0.7082, allocations: 67.17 kB / 0.9534 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.153e-05/0.7083, allocations: 51.41 kB / 0.9535 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.724e-05/0.7083, allocations: 112.4 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.212e-06/0.7083, allocations: 25.7 kB / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.14e-05/0.7084, allocations: 85.45 kB / 0.9537 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.368e-05/0.7084, allocations: 5.375 kB / 0.9537 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.7084, allocations: 11.97 kB / 0.9537 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.552e-05/0.7084, allocations: 328 kB / 0.954 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.072e-05/0.7085, allocations: 6.344 kB / 0.954 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.217e-05/0.7085, allocations: 8.859 kB / 0.954 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.244e-05/0.7086, allocations: 30.22 kB / 0.9541 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.7086, allocations: 0 / 0.9541 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001098/0.7087, allocations: 62.61 kB / 0.9541 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.7088, allocations: 8.375 kB / 0.9541 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.7088, allocations: 1.438 kB / 0.9541 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.7088, allocations: 0 / 0.9541 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.153e-05/0.7089, allocations: 8.297 kB / 0.9541 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.7089, allocations: 0 / 0.9541 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.255e-05/0.7089, allocations: 6.844 kB / 0.9541 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.7089, allocations: 3.938 kB / 0.9541 GB, free: 5.062 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 5.009e-05/0.709, allocations: 112.7 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.709, allocations: 1.375 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001509/0.7092, allocations: 65.11 kB / 0.9543 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.7092, allocations: 1.812 kB / 0.9543 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.7092, allocations: 3.938 kB / 0.9543 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.7092, allocations: 0 / 0.9543 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.7093, allocations: 167.5 kB / 0.9545 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.7093, allocations: 1.469 kB / 0.9545 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.272e-05/0.7094, allocations: 3.906 kB / 0.9545 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.7094, allocations: 3.984 kB / 0.9545 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.7094, allocations: 1.125 kB / 0.9545 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.7094, allocations: 4.031 kB / 0.9545 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.7094, allocations: 7.938 kB / 0.9545 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.7095, allocations: 149.2 kB / 0.9546 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.728e-05/0.7096, allocations: 78.17 kB / 0.9547 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.7096, allocations: 4.922 kB / 0.9547 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.104e-05/0.7096, allocations: 5.875 kB / 0.9547 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.552e-05/0.7097, allocations: 5.062 kB / 0.9547 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.7097, allocations: 2.094 kB / 0.9547 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.911e-05/0.7097, allocations: 89 kB / 0.9548 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.032e-06/0.7097, allocations: 0 / 0.9548 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002374/0.71, allocations: 23.97 kB / 0.9548 GB, free: 4.316 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.0003986/0.7104, allocations: 0.6963 MB / 0.9555 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001395/0.7105, allocations: 26.44 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.7105, allocations: 0 / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.534e-05/0.7106, allocations: 11.69 kB / 0.9556 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.7108, allocations: 7.438 kB / 0.9556 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000423/0.7112, allocations: 160 kB / 0.9557 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/0.7114, allocations: 0.6823 MB / 0.9564 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.212e-05/0.7114, allocations: 1.312 kB / 0.9564 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.7115, allocations: 12.72 kB / 0.9564 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7115, allocations: 1.281 kB / 0.9564 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01631/0.7278, allocations: 1.578 MB / 0.9579 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/8.051, allocations: 12.08 kB / 0.9579 GB, free: 1.828 MB / 0.7169 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