Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.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.SmoothMin,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothMin,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin",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.001272/0.001272, allocations: 107.3 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.001057/0.001057, allocations: 188 kB / 16.25 MB, free: 6.152 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.25/1.25, allocations: 222.9 MB / 239.9 MB, free: 4.531 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.101/2.101, allocations: 390.2 MB / 0.6644 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 67.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5764/0.5778, allocations: 140.3 MB / 0.9492 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002031/0.5798, allocations: 1.525 MB / 0.9507 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000287/0.5801, allocations: 135.3 kB / 0.9508 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.94e-05/0.5802, allocations: 1.094 kB / 0.9508 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.069e-05/0.5802, allocations: 3.938 kB / 0.9508 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.411e-05/0.5803, allocations: 4.984 kB / 0.9508 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.5805, allocations: 32.28 kB / 0.9509 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.562e-05/0.5805, allocations: 41.52 kB / 0.9509 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.5807, allocations: 19.42 kB / 0.9509 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.586e-05/0.5807, allocations: 17.7 kB / 0.951 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.564e-05/0.5807, allocations: 25.42 kB / 0.951 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.5808, allocations: 8.312 kB / 0.951 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.426e-05/0.5808, allocations: 29.62 kB / 0.951 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.5809, allocations: 9.422 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.338e-05/0.5809, allocations: 25.44 kB / 0.951 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.581, allocations: 59.28 kB / 0.9511 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.581, allocations: 0 / 0.9511 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.243e-06/0.581, allocations: 0 / 0.9511 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.94e-06/0.581, allocations: 1.25 kB / 0.9511 GB, free: 7.672 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003308/0.5813, allocations: 364.8 kB / 0.9515 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.5814, allocations: 14.44 kB / 0.9515 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.496e-05/0.5814, allocations: 35.77 kB / 0.9515 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009424/0.5824, allocations: 207.2 kB / 0.9517 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.366e-05/0.5824, allocations: 173.8 kB / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.5825, allocations: 1.781 kB / 0.9519 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.5825, allocations: 10.55 kB / 0.9519 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/0.5829, allocations: 191.7 kB / 0.9521 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.583, allocations: 7.875 kB / 0.9521 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.583, allocations: 1.281 kB / 0.9521 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.583, allocations: 1 kB / 0.9521 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007301/0.5837, allocations: 279.2 kB / 0.9523 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007289/0.5845, allocations: 456.9 kB / 0.9528 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009369/0.5854, allocations: 287.9 kB / 0.953 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000295/0.5857, allocations: 101.5 kB / 0.9531 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.5857, allocations: 5.203 kB / 0.9531 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.273e-05/0.5858, allocations: 30.56 kB / 0.9532 GB, free: 6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.5858, allocations: 1.531 kB / 0.9532 GB, free: 6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0009796/0.5867, allocations: 309.6 kB / 0.9535 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.985e-05/0.5868, allocations: 52.47 kB / 0.9535 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.064e-05/0.5868, allocations: 120.3 kB / 0.9536 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.5869, allocations: 26.98 kB / 0.9537 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.59e-05/0.5869, allocations: 94.84 kB / 0.9538 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.5869, allocations: 6.312 kB / 0.9538 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.587, allocations: 21.25 kB / 0.9538 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.602e-05/0.587, allocations: 321.4 kB / 0.9541 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.5873, allocations: 98.84 kB / 0.9542 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.5876, allocations: 91.53 kB / 0.9543 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000551/0.5882, allocations: 176.2 kB / 0.9544 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5882, allocations: 0 / 0.9544 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006098/0.5888, allocations: 215.5 kB / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.5888, allocations: 9.609 kB / 0.9547 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.5888, allocations: 4 kB / 0.9547 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.5888, allocations: 5.25 kB / 0.9547 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.5891, allocations: 29.55 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.5891, allocations: 1.25 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.5893, allocations: 27.11 kB / 0.9547 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.5893, allocations: 5.141 kB / 0.9547 GB, free: 4.828 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 (3): * Single equations (assignments): 3 * 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.677e-05/0.5893, allocations: 118.1 kB / 0.9548 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.5894, allocations: 9.438 kB / 0.9548 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.5894, allocations: 6.844 kB / 0.9548 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5894, allocations: 5.422 kB / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.5894, allocations: 0 / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.5894, allocations: 336 / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.5896, allocations: 221.6 kB / 0.9551 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.5896, allocations: 384 / 0.9551 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.5898, allocations: 34.55 kB / 0.9551 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.5898, allocations: 4 kB / 0.9551 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.5898, allocations: 8.875 kB / 0.9551 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.5898, allocations: 4.969 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5898, allocations: 0 / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/0.5905, allocations: 310.8 kB / 0.9554 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.5905, allocations: 82.33 kB / 0.9555 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.5905, allocations: 1.062 kB / 0.9555 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.5907, allocations: 26.42 kB / 0.9555 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.876e-05/0.5907, allocations: 5.109 kB / 0.9555 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.657e-06/0.5908, allocations: 2.438 kB / 0.9555 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.445e-05/0.5908, allocations: 100.3 kB / 0.9556 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5908, allocations: 5.219 kB / 0.9556 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002232/0.591, allocations: 16 kB / 0.9556 GB, free: 3.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 (3): * Single equations (assignments): 3 * 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.0007708/0.5918, allocations: 0.8289 MB / 0.9564 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006415/0.5925, allocations: 199.3 kB / 0.9566 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.5925, allocations: 5.281 kB / 0.9566 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003047/0.5928, allocations: 99.31 kB / 0.9567 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.593, allocations: 14.12 kB / 0.9568 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002659/0.5957, allocations: 1.84 MB / 0.9585 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001038/0.5958, allocations: 0.6965 MB / 0.9592 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.136e-05/0.5959, allocations: 20.36 kB / 0.9592 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.135e-05/0.5959, allocations: 14.19 kB / 0.9593 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.5959, allocations: 3.938 kB / 0.9593 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.013/0.609, allocations: 1.797 MB / 0.961 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/0.6092, allocations: 188.6 kB / 0.9612 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/2.229, allocations: 4 kB / 0.9612 GB, free: 15.62 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothMin.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches