Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008823/0.0008823, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000952/0.000952, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8971/0.8971, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.79/1.79, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.512e-05/1.655e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001856/0.001872, allocations: 1.464 MB / 1.001 GB, free: 11.99 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007412/0.002614, allocations: 0.585 MB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.978e-05/0.002663, allocations: 0 / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.674e-05/0.00269, allocations: 7.875 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.068e-05/0.002731, allocations: 3.984 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000278/0.003009, allocations: 59.75 kB / 1.002 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 8.79e-05/0.003097, allocations: 27.88 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.905e-05/0.003186, allocations: 11.97 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.003301, allocations: 31.86 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 3.87e-05/0.00334, allocations: 7.984 kB / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.003353, allocations: 0 / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001002/0.003453, allocations: 51.95 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.003464, allocations: 7.938 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.937e-05/0.003483, allocations: 7.984 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.003625, allocations: 83.7 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.003627, allocations: 0 / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.41e-07/0.003628, allocations: 0 / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.003632, allocations: 4 kB / 1.002 GB, free: 11.1 MB / 0.9636 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.0003265/0.003958, allocations: 278.1 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.003999, allocations: 12.75 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.945e-05/0.004028, allocations: 30.75 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006954/0.01098, allocations: 2.432 MB / 1.005 GB, free: 8.316 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.0112, allocations: 153.6 kB / 1.005 GB, free: 8.141 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.01121, allocations: 384 / 1.005 GB, free: 8.141 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.01123, allocations: 384 / 1.005 GB, free: 8.141 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002518/0.01375, allocations: 1.024 MB / 1.006 GB, free: 7.109 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.01376, allocations: 192 / 1.006 GB, free: 7.109 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.01379, allocations: 4.125 kB / 1.006 GB, free: 7.105 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.01379, allocations: 0 / 1.006 GB, free: 7.105 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004745/0.01854, allocations: 1.857 MB / 1.008 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.02163, allocations: 1.419 MB / 1.009 GB, free: 3.785 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00485/0.02648, allocations: 1.868 MB / 1.011 GB, free: 1.906 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002325/0.02881, allocations: 0.9452 MB / 1.012 GB, free: 0.957 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.02883, allocations: 3.984 kB / 1.012 GB, free: 0.9531 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.02885, allocations: 34.56 kB / 1.012 GB, free: 0.9102 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 1.723e-06/0.02885, allocations: 3.938 kB / 1.012 GB, free: 0.9062 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.007026/0.03588, allocations: 2.745 MB / 1.014 GB, free: 14.15 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.03592, allocations: 55.41 kB / 1.015 GB, free: 14.09 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.095e-05/0.03599, allocations: 113.8 kB / 1.015 GB, free: 13.96 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.03601, allocations: 25.7 kB / 1.015 GB, free: 13.93 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 3.587e-05/0.03605, allocations: 88.12 kB / 1.015 GB, free: 13.84 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 2.996e-05/0.03608, allocations: 7.953 kB / 1.015 GB, free: 13.84 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.097e-05/0.03615, allocations: 33.7 kB / 1.015 GB, free: 13.8 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 7.341e-05/0.03622, allocations: 310.8 kB / 1.015 GB, free: 13.48 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/0.03857, allocations: 0.9287 MB / 1.016 GB, free: 12.55 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002362/0.04094, allocations: 0.9287 MB / 1.017 GB, free: 11.62 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004524/0.04546, allocations: 1.683 MB / 1.019 GB, free: 9.938 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.04546, allocations: 0 / 1.019 GB, free: 9.938 MB / 0.9792 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.004644/0.05011, allocations: 1.82 MB / 1.02 GB, free: 8.109 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.05012, allocations: 8 kB / 1.02 GB, free: 8.102 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.05013, allocations: 0 / 1.02 GB, free: 8.102 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.05015, allocations: 0 / 1.02 GB, free: 8.102 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.05146, allocations: 463.5 kB / 1.021 GB, free: 7.648 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.05146, allocations: 0 / 1.021 GB, free: 7.648 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.0527, allocations: 455.5 kB / 1.021 GB, free: 7.203 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.05272, allocations: 3.984 kB / 1.021 GB, free: 7.199 MB / 0.9792 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 9.279e-05/0.05281, allocations: 117.8 kB / 1.021 GB, free: 7.074 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.05284, allocations: 7.891 kB / 1.021 GB, free: 7.066 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.05289, allocations: 11.62 kB / 1.021 GB, free: 7.051 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.0529, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.0529, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.0529, allocations: 0 / 1.021 GB, free: 7.051 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.05317, allocations: 269.7 kB / 1.022 GB, free: 6.742 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.05317, allocations: 3.938 kB / 1.022 GB, free: 6.738 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.05444, allocations: 463.5 kB / 1.022 GB, free: 6.285 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.05444, allocations: 0 / 1.022 GB, free: 6.285 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.05446, allocations: 7.984 kB / 1.022 GB, free: 6.277 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.05446, allocations: 0 / 1.022 GB, free: 6.277 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.05446, allocations: 3.984 kB / 1.022 GB, free: 6.273 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004643/0.05911, allocations: 1.915 MB / 1.024 GB, free: 4.34 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 1.406e-05/0.05912, allocations: 11.89 kB / 1.024 GB, free: 4.328 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.05915, allocations: 0 / 1.024 GB, free: 4.328 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.06055, allocations: 455.5 kB / 1.024 GB, free: 3.883 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.117e-05/0.06058, allocations: 4.375 kB / 1.024 GB, free: 3.879 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.06059, allocations: 7.984 kB / 1.024 GB, free: 3.871 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 4.017e-05/0.06063, allocations: 95.2 kB / 1.024 GB, free: 3.777 MB / 0.9792 GB Notification: Performance of sort global known variables: time 8.1e-08/0.06063, allocations: 0 / 1.024 GB, free: 3.777 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0002025/0.06084, allocations: 36 kB / 1.024 GB, free: 3.742 MB / 0.9792 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.004839/0.06568, allocations: 2.437 MB / 1.027 GB, free: 1.277 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.005145/0.07082, allocations: 1.869 MB / 1.029 GB, free: 15.41 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.07082, allocations: 0 / 1.029 GB, free: 15.41 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.002347/0.07317, allocations: 0.9366 MB / 1.03 GB, free: 14.47 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.07338, allocations: 2.672 kB / 1.03 GB, free: 14.47 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.08847, allocations: 6.802 MB / 1.036 GB, free: 7.578 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.266e-05/0.08853, allocations: 71.19 kB / 1.036 GB, free: 7.488 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.0001581/0.08869, allocations: 32.03 kB / 1.036 GB, free: 7.457 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.08884, allocations: 28.47 kB / 1.036 GB, free: 7.43 MB / 0.9948 GB Notification: Performance of SimCode: time 1.222e-06/0.08884, allocations: 0 / 1.036 GB, free: 7.43 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.1053, allocations: 4.319 MB / 1.041 GB, free: 3.223 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.991/7.097, allocations: 6.094 kB / 1.041 GB, free: 3.219 MB / 0.9948 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.761443837545812]