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.009871/0.009871, allocations: 97.17 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.00208/0.00208, allocations: 194.5 kB / 16.68 MB, free: 5.973 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.414/2.414, allocations: 390.2 MB / 0.6648 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 62.78 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2585, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002791/0.2614, allocations: 1.45 MB / 1.089 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.000937/0.2623, allocations: 0.571 MB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.494e-05/0.2624, allocations: 0 / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.854e-05/0.2624, allocations: 0 / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.32e-05/0.2625, allocations: 3.938 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.2628, allocations: 51.81 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.651e-05/0.2629, allocations: 27.92 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.887e-05/0.263, allocations: 4 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.476e-05/0.263, allocations: 23.86 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.243e-05/0.2631, allocations: 15.92 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.304e-05/0.2631, allocations: 4 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.2632, allocations: 47.95 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.512e-05/0.2633, allocations: 8 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.2633, allocations: 7.922 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.2634, allocations: 64.08 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2635, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.825e-06/0.2635, allocations: 0 / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.2635, allocations: 3.938 kB / 1.09 GB, free: 15.71 MB / 0.8575 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.0003988/0.2639, allocations: 359.3 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.2639, allocations: 8.031 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.817e-05/0.264, allocations: 30.75 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.264, allocations: 8.891 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.2641, allocations: 168.3 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.2642, allocations: 4.312 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.2642, allocations: 4.375 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/0.2643, allocations: 49.8 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2643, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.2643, allocations: 4 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.2643, allocations: 0 / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.599e-05/0.2644, allocations: 23.97 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002895/0.2647, allocations: 252.9 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.907e-05/0.2648, allocations: 38.5 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.754e-05/0.2649, allocations: 16.91 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007831/0.2657, allocations: 473.4 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.2657, allocations: 30.56 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.2657, allocations: 0 / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002402/0.266, allocations: 65.67 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.266, allocations: 59.34 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.293e-05/0.2661, allocations: 109.8 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.2661, allocations: 29.7 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.828e-05/0.2662, allocations: 88.12 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.418e-05/0.2662, allocations: 3.953 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.2662, allocations: 13.72 kB / 1.091 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.2663, allocations: 322.9 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.351e-05/0.2664, allocations: 11.98 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.792e-05/0.2664, allocations: 12 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.611e-05/0.2665, allocations: 24.84 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2665, allocations: 0 / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001249/0.2666, allocations: 57.62 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.2667, allocations: 19.97 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2667, allocations: 320 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.2667, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.398e-05/0.2667, allocations: 4 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.2668, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.373e-05/0.2668, allocations: 4 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.2668, allocations: 7.969 kB / 1.092 GB, free: 13.12 MB / 0.8575 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.519e-05/0.2669, allocations: 115.8 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.2669, allocations: 4 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001608/0.2671, allocations: 61.2 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2671, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2671, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2671, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.2673, allocations: 165.6 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2673, allocations: 3.984 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.519e-05/0.2673, allocations: 7.938 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2673, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-06/0.2673, allocations: 0 / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2673, allocations: 4.031 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2674, allocations: 4 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.2675, allocations: 151.4 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.2676, allocations: 81.05 kB / 1.092 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.2676, allocations: 4 kB / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.104e-05/0.2677, allocations: 4 kB / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.774e-05/0.2677, allocations: 8.016 kB / 1.092 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.2677, allocations: 0 / 1.092 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.031e-05/0.2677, allocations: 87.28 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2677, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000237/0.268, allocations: 15.98 kB / 1.093 GB, free: 12.32 MB / 0.8575 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.0004709/0.2685, allocations: 0.7122 MB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001312/0.2686, allocations: 23.98 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2686, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.207e-05/0.2687, allocations: 19.86 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.2689, allocations: 4 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004087/0.2693, allocations: 152.4 kB / 1.093 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.2696, allocations: 0.6846 MB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.512e-05/0.2696, allocations: 4 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.2696, allocations: 15.42 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.2696, allocations: 0 / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01636/0.286, allocations: 1.599 MB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.239/7.525, allocations: 22.06 kB / 1.096 GB, free: 9.074 MB / 0.8575 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