Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.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.0007951/0.0007951, 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.0008573/0.0008573, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8752/0.8752, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.785/1.785, allocations: 389 MB / 0.633 GB, free: 12.68 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.Functions.Examples.RegStep,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.9997 GB, free: 13.44 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.967e-05/2.113e-05, allocations: 4.812 kB / 0.9997 GB, free: 13.44 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001303/0.001324, allocations: 0.5799 MB / 1 GB, free: 12.86 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002189/0.001543, allocations: 47.8 kB / 1 GB, free: 12.81 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.562e-05/0.001559, allocations: 0 / 1 GB, free: 12.81 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 1.606e-05/0.001575, allocations: 3.938 kB / 1 GB, free: 12.81 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.553e-06/0.001581, allocations: 0 / 1 GB, free: 12.81 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.001832, allocations: 15.92 kB / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 4.746e-05/0.001879, allocations: 4 kB / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.311e-05/0.001923, allocations: 0 / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 2.437e-05/0.001947, allocations: 4 kB / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 2.198e-05/0.001969, allocations: 0 / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.001982, allocations: 0 / 1 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.00209, allocations: 27.95 kB / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.278e-05/0.002103, allocations: 0 / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.365e-05/0.002117, allocations: 0 / 1 GB, free: 12.76 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 9.807e-05/0.002215, allocations: 23.92 kB / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.002217, allocations: 0 / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.222e-06/0.002218, allocations: 0 / 1 GB, free: 12.73 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.002221, allocations: 0 / 1 GB, free: 12.73 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002399/0.002461, allocations: 234.5 kB / 1.001 GB, free: 12.47 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.002503, allocations: 16.75 kB / 1.001 GB, free: 12.46 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.286e-05/0.002536, allocations: 34.69 kB / 1.001 GB, free: 12.41 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.002762, allocations: 16.91 kB / 1.001 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.531e-05/0.002817, allocations: 101.8 kB / 1.001 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.002828, allocations: 4.312 kB / 1.001 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.395e-06/0.002836, allocations: 4.375 kB / 1.001 GB, free: 12.27 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.002946, allocations: 42.23 kB / 1.001 GB, free: 12.22 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.002953, allocations: 192 / 1.001 GB, free: 12.22 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.002962, allocations: 8.375 kB / 1.001 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.002968, allocations: 4.125 kB / 1.001 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.602e-05/0.003014, allocations: 7.984 kB / 1.001 GB, free: 12.2 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001051/0.003119, allocations: 120.8 kB / 1.001 GB, free: 12.04 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.213e-05/0.003171, allocations: 22.55 kB / 1.001 GB, free: 12.01 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.536e-05/0.003206, allocations: 12.91 kB / 1.001 GB, free: 11.99 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.003228, allocations: 4 kB / 1.001 GB, free: 11.99 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.00325, allocations: 30.56 kB / 1.001 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.003251, allocations: 4 kB / 1.001 GB, free: 11.95 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1): time 0.0002213/0.003472, allocations: 45.67 kB / 1.001 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.003514, allocations: 59.28 kB / 1.001 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.086e-05/0.003545, allocations: 89.86 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.003557, allocations: 25.7 kB / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 2.541e-05/0.003582, allocations: 84.14 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.003618, allocations: 3.938 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.185e-05/0.00365, allocations: 13.72 kB / 1.001 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.00375, allocations: 314.8 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.847e-05/0.003789, allocations: 8.109 kB / 1.002 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.958e-05/0.003818, allocations: 7.938 kB / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.316e-05/0.003891, allocations: 16.84 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.003894, allocations: 0 / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001123/0.004006, allocations: 41.64 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.004029, allocations: 11.98 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.004036, allocations: 4.094 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.00405, allocations: 3.938 kB / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.817e-05/0.004118, allocations: 0 / 1.002 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.004126, allocations: 11.92 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.476e-05/0.004151, allocations: 0 / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.004159, allocations: 4 kB / 1.002 GB, free: 11.15 MB / 0.9636 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 (1): * Single equations (assignments): 1 * 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.13e-05/0.004221, allocations: 113.8 kB / 1.002 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.071e-06/0.004227, allocations: 0 / 1.002 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.004258, allocations: 3 kB / 1.002 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.004259, allocations: 7.938 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.004265, allocations: 3.938 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.004268, allocations: 0 / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.127e-05/0.004329, allocations: 116.8 kB / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.00433, allocations: 0 / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.238e-05/0.004353, allocations: 3.984 kB / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.004355, allocations: 4 kB / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.004363, allocations: 0 / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.004364, allocations: 0 / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.004366, allocations: 3.938 kB / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.147e-05/0.004458, allocations: 77.05 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-06/0.004461, allocations: 0 / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.977e-06/0.00447, allocations: 0 / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.38e-05/0.004494, allocations: 4 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.004509, allocations: 7.938 kB / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.004512, allocations: 0 / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.528e-05/0.004538, allocations: 75.28 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of sort global known variables: time 9e-08/0.004538, allocations: 0 / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002129/0.004751, allocations: 0 / 1.002 GB, free: 10.67 MB / 0.9636 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 (1): * Single equations (assignments): 1 * 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.0003392/0.00509, allocations: 0.6008 MB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001126/0.005202, allocations: 15.92 kB / 1.003 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.005204, allocations: 0 / 1.003 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 2.998e-05/0.005234, allocations: 7.984 kB / 1.003 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.005368, allocations: 6.172 kB / 1.003 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003292/0.005697, allocations: 114.9 kB / 1.003 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.499e-05/0.005732, allocations: 51.36 kB / 1.003 GB, free: 9.789 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.349e-05/0.005766, allocations: 7.984 kB / 1.003 GB, free: 9.781 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.573e-05/0.005791, allocations: 12.44 kB / 1.003 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of SimCode: time 7.41e-07/0.005792, allocations: 0 / 1.003 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01363/0.01942, allocations: 1.589 MB / 1.005 GB, free: 8.305 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.842/6.861, allocations: 11.67 kB / 1.005 GB, free: 8.297 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.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: 10.997758580371737]