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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008595/0.0008595, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.004992/0.004992, allocations: 174.9 kB / 16.27 MB, free: 6.613 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.235/1.235, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.116/2.116, allocations: 390.9 MB / 0.6664 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003042, allocations: 12.23 kB / 0.8161 GB, free: 13.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.581/0.5813, allocations: 142.4 MB / 0.9552 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001295/0.5826, allocations: 1.173 MB / 0.9563 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007391/0.5834, allocations: 0.5589 MB / 0.9569 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.515e-05/0.5834, allocations: 1.375 kB / 0.9569 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.466e-05/0.5835, allocations: 7.922 kB / 0.9569 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.58e-05/0.5835, allocations: 9.453 kB / 0.9569 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.5837, allocations: 31.8 kB / 0.9569 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.668e-05/0.5838, allocations: 26.97 kB / 0.9569 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.333e-05/0.5839, allocations: 14.44 kB / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.089e-05/0.584, allocations: 13.36 kB / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.466e-05/0.584, allocations: 12.38 kB / 0.957 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.584, allocations: 0.875 kB / 0.957 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.5841, allocations: 52.91 kB / 0.957 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.139e-05/0.5842, allocations: 5.109 kB / 0.957 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.418e-05/0.5842, allocations: 39.98 kB / 0.9571 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.5843, allocations: 57.83 kB / 0.9571 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.5843, allocations: 0.9688 kB / 0.9571 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5843, allocations: 4 kB / 0.9571 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.5843, allocations: 0 / 0.9571 GB, free: 6.066 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.0002961/0.5846, allocations: 350.9 kB / 0.9575 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.5847, allocations: 9.281 kB / 0.9575 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.362e-05/0.5847, allocations: 32.09 kB / 0.9575 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.086e-05/0.5847, allocations: 6.094 kB / 0.9575 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.574e-05/0.5848, allocations: 170.6 kB / 0.9577 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.306e-06/0.5848, allocations: 1.75 kB / 0.9577 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.5848, allocations: 9.688 kB / 0.9577 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.585, allocations: 51.08 kB / 0.9577 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-06/0.585, allocations: 0 / 0.9577 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.585, allocations: 5.078 kB / 0.9577 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.585, allocations: 0 / 0.9577 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.095e-05/0.5851, allocations: 23.33 kB / 0.9578 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002286/0.5853, allocations: 259.8 kB / 0.958 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.622e-05/0.5854, allocations: 34.39 kB / 0.958 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.457e-05/0.5855, allocations: 16.81 kB / 0.9581 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006539/0.5861, allocations: 0.4906 MB / 0.9585 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.512e-05/0.5861, allocations: 35.95 kB / 0.9586 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.744e-06/0.5861, allocations: 0 / 0.9586 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002096/0.5864, allocations: 68.09 kB / 0.9586 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.123e-05/0.5864, allocations: 57.09 kB / 0.9587 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.949e-05/0.5864, allocations: 110.9 kB / 0.9588 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.862e-06/0.5865, allocations: 27.48 kB / 0.9588 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.345e-05/0.5865, allocations: 92.11 kB / 0.9589 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.324e-05/0.5865, allocations: 5.688 kB / 0.9589 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-05/0.5865, allocations: 9.719 kB / 0.9589 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.739e-05/0.5866, allocations: 320.6 kB / 0.9592 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.017e-05/0.5866, allocations: 11.14 kB / 0.9592 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.29e-05/0.5867, allocations: 16.91 kB / 0.9593 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.212e-05/0.5867, allocations: 32.28 kB / 0.9593 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.5867, allocations: 0 / 0.9593 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001067/0.5868, allocations: 65.55 kB / 0.9593 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.5869, allocations: 7.344 kB / 0.9594 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.5869, allocations: 4.094 kB / 0.9594 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.5869, allocations: 1.25 kB / 0.9594 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.2e-05/0.587, allocations: 5.031 kB / 0.9594 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.587, allocations: 0 / 0.9594 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.165e-05/0.587, allocations: 7.594 kB / 0.9594 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.587, allocations: 3.984 kB / 0.9594 GB, free: 3.707 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 4.072e-05/0.5871, allocations: 111.9 kB / 0.9595 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.5871, allocations: 2.5 kB / 0.9595 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001382/0.5872, allocations: 68.83 kB / 0.9595 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.5872, allocations: 1.281 kB / 0.9596 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.5872, allocations: 0 / 0.9596 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.5873, allocations: 0 / 0.9596 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.5874, allocations: 164.5 kB / 0.9597 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.5874, allocations: 3.938 kB / 0.9597 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.857e-05/0.5874, allocations: 8.641 kB / 0.9597 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.5874, allocations: 5.125 kB / 0.9597 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.54e-06/0.5874, allocations: 0.9688 kB / 0.9597 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5874, allocations: 0 / 0.9597 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5874, allocations: 0 / 0.9597 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001153/0.5876, allocations: 157.3 kB / 0.9599 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.429e-05/0.5876, allocations: 78.58 kB / 0.9599 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.5876, allocations: 4.844 kB / 0.96 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.575e-05/0.5877, allocations: 10.56 kB / 0.96 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.709e-05/0.5877, allocations: 9.172 kB / 0.96 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.5877, allocations: 1.562 kB / 0.96 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.194e-05/0.5877, allocations: 80.47 kB / 0.9601 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5877, allocations: 1.344 kB / 0.9601 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002211/0.588, allocations: 18.95 kB / 0.9601 GB, free: 2.973 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.0003071/0.5883, allocations: 0.7036 MB / 0.9608 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001144/0.5884, allocations: 25.61 kB / 0.9608 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5884, allocations: 5.094 kB / 0.9608 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.272e-05/0.5884, allocations: 17.36 kB / 0.9608 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.5886, allocations: 5.625 kB / 0.9608 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003249/0.589, allocations: 166.9 kB / 0.961 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.998e-05/0.5891, allocations: 0.6859 MB / 0.9616 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.079e-05/0.5891, allocations: 5.922 kB / 0.9616 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.311e-05/0.5891, allocations: 12.59 kB / 0.9617 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of SimCode: time 7.11e-07/0.5891, allocations: 1.219 kB / 0.9617 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009765/0.5989, allocations: 1.382 MB / 0.963 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000136/0.5991, allocations: 189.5 kB / 0.9632 GB, free: 456 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.517/2.116, allocations: 0 / 0.9632 GB, free: 456 kB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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