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.001765/0.001765, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001372/0.001372, allocations: 195.9 kB / 16.26 MB, free: 6.629 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.283/1.283, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.347/2.347, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 71.91 kB / 0.8689 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5451/0.5464, allocations: 151.6 MB / 1.017 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002214/0.5487, allocations: 1.534 MB / 1.018 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007234/0.5494, allocations: 0.558 MB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.781e-05/0.5495, allocations: 4 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.754e-05/0.5495, allocations: 0 / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.45e-05/0.5496, allocations: 7.922 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.5498, allocations: 43.91 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.355e-05/0.5499, allocations: 27.86 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.349e-05/0.5499, allocations: 8 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.226e-05/0.55, allocations: 7.984 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.152e-05/0.5501, allocations: 23.92 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.5501, allocations: 0 / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.987e-05/0.5502, allocations: 51.95 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.174e-05/0.5502, allocations: 11.92 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.403e-05/0.5502, allocations: 11.94 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.5504, allocations: 59.86 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.5504, allocations: 0 / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.432e-06/0.5504, allocations: 0 / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.5504, allocations: 0 / 1.019 GB, free: 352 kB / 0.7637 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.0003561/0.5507, allocations: 357.6 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.5508, allocations: 15.97 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.563e-05/0.5508, allocations: 30.75 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.019e-05/0.5508, allocations: 4.938 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.378e-05/0.5509, allocations: 168.3 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.551, allocations: 384 / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-06/0.551, allocations: 4.312 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.5511, allocations: 49.8 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.5511, allocations: 0 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.5511, allocations: 0 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.5511, allocations: 0 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.908e-05/0.5512, allocations: 23.98 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002688/0.5515, allocations: 260.8 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.255e-05/0.5516, allocations: 26.58 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.282e-05/0.5516, allocations: 16.91 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007212/0.5523, allocations: 493.3 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.5524, allocations: 30.56 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.5524, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.000197/0.5526, allocations: 69.62 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.5526, allocations: 55.39 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.036e-05/0.5527, allocations: 105.9 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.5527, allocations: 25.7 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.5527, allocations: 88.12 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.5528, allocations: 7.906 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.462e-05/0.5528, allocations: 9.719 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.5529, allocations: 326.8 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.598e-05/0.553, allocations: 8.031 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.892e-05/0.5531, allocations: 11.98 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.744e-05/0.5532, allocations: 24.86 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5532, allocations: 0 / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001067/0.5533, allocations: 57.61 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.729e-06/0.5533, allocations: 4 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.5533, allocations: 4.094 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.5533, allocations: 4 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.959e-05/0.5534, allocations: 4 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.5534, allocations: 4 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.157e-05/0.5534, allocations: 7.922 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.5534, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 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 6.455e-05/0.5535, allocations: 118.3 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.5535, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/0.5537, allocations: 73.05 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.5537, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.5537, allocations: 7.938 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.5537, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001359/0.5538, allocations: 161.6 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.5539, allocations: 0 / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.966e-05/0.5539, allocations: 4 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.5539, allocations: 4 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.5539, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.5539, allocations: 0 / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.5539, allocations: 4.031 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.5541, allocations: 151.5 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.165e-05/0.5541, allocations: 81.11 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.5541, allocations: 3.938 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.5542, allocations: 3.984 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.615e-05/0.5542, allocations: 4 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.5542, allocations: 32 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.052e-05/0.5543, allocations: 91.22 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.61e-07/0.5543, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002156/0.5545, allocations: 19.98 kB / 1.022 GB, free: 12.96 MB / 0.7794 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.0004437/0.5549, allocations: 0.7007 MB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001136/0.5551, allocations: 27.92 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.5551, allocations: 0 / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.131e-05/0.5551, allocations: 15.98 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.5553, allocations: 1.875 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000369/0.5557, allocations: 168.5 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.5559, allocations: 0.6768 MB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.168e-05/0.556, allocations: 0 / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.556, allocations: 15.38 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of SimCode: time 1.9e-07/0.556, allocations: 0 / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8262/1.382, allocations: 1.489 MB / 1.025 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002392/1.382, allocations: 188.3 kB / 1.025 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.557/2.94, allocations: 3.938 kB / 1.025 GB, free: 9.617 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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