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.001925/0.001925, allocations: 104.3 kB / 16.45 MB, free: 6.449 MB / 14.72 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.002266/0.002266, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 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 1.523/1.523, allocations: 230.6 MB / 252.8 MB, free: 9.148 MB / 206.1 MB " [Timeout remaining time 178] 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 3.395/3.395, allocations: 0.505 GB / 0.8066 GB, free: 23.13 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 76.25 kB / 1.172 GB, free: 17.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.418/0.42, allocations: 180.2 MB / 1.348 GB, free: 9.996 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001876/0.4219, allocations: 0.5817 MB / 1.348 GB, free: 9.418 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002949/0.4222, allocations: 55.72 kB / 1.348 GB, free: 9.363 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.005e-05/0.4222, allocations: 0 / 1.348 GB, free: 9.363 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.206e-05/0.4222, allocations: 0 / 1.348 GB, free: 9.363 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.142e-06/0.4222, allocations: 4 kB / 1.348 GB, free: 9.359 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.4225, allocations: 19.97 kB / 1.348 GB, free: 9.34 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 5.258e-05/0.4225, allocations: 3.938 kB / 1.348 GB, free: 9.336 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.508e-05/0.4226, allocations: 0 / 1.348 GB, free: 9.336 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 1.717e-05/0.4226, allocations: 8 kB / 1.348 GB, free: 9.328 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 2.381e-05/0.4226, allocations: 0 / 1.348 GB, free: 9.328 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.4226, allocations: 0 / 1.348 GB, free: 9.328 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.4228, allocations: 19.98 kB / 1.348 GB, free: 9.309 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.4228, allocations: 3.984 kB / 1.348 GB, free: 9.305 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 1.822e-05/0.4228, allocations: 4 kB / 1.348 GB, free: 9.301 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 9.08e-05/0.4229, allocations: 12.25 kB / 1.348 GB, free: 9.289 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.4229, allocations: 0 / 1.348 GB, free: 9.289 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4229, allocations: 4 kB / 1.348 GB, free: 9.285 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.4229, allocations: 0 / 1.348 GB, free: 9.285 MB / 1.045 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.0003569/0.4233, allocations: 315.5 kB / 1.349 GB, free: 8.926 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4233, allocations: 16.02 kB / 1.349 GB, free: 8.91 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.225e-05/0.4233, allocations: 38.67 kB / 1.349 GB, free: 8.863 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.4236, allocations: 16.91 kB / 1.349 GB, free: 8.848 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.4237, allocations: 160.4 kB / 1.349 GB, free: 8.652 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.734e-06/0.4237, allocations: 384 / 1.349 GB, free: 8.652 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.4238, allocations: 4.375 kB / 1.349 GB, free: 8.648 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.4239, allocations: 38.25 kB / 1.349 GB, free: 8.605 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.4239, allocations: 7.938 kB / 1.349 GB, free: 8.598 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.4239, allocations: 0 / 1.349 GB, free: 8.598 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4239, allocations: 3.938 kB / 1.349 GB, free: 8.594 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.198e-05/0.424, allocations: 7.984 kB / 1.349 GB, free: 8.586 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001906/0.4242, allocations: 153.7 kB / 1.349 GB, free: 8.387 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 8.507e-05/0.4243, allocations: 18.61 kB / 1.349 GB, free: 8.359 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.53e-05/0.4243, allocations: 13.25 kB / 1.349 GB, free: 8.344 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.4244, allocations: 4.062 kB / 1.349 GB, free: 8.34 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.4244, allocations: 30.56 kB / 1.349 GB, free: 8.301 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.4244, allocations: 0 / 1.349 GB, free: 8.301 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.000263/0.4247, allocations: 61.48 kB / 1.349 GB, free: 8.234 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.235e-05/0.4247, allocations: 55.53 kB / 1.349 GB, free: 8.168 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.969e-05/0.4248, allocations: 89.86 kB / 1.349 GB, free: 8.07 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.4248, allocations: 25.7 kB / 1.35 GB, free: 8.039 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.527e-05/0.4249, allocations: 80.14 kB / 1.35 GB, free: 7.957 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.4249, allocations: 3.953 kB / 1.35 GB, free: 7.953 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.4249, allocations: 13.72 kB / 1.35 GB, free: 7.934 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4251, allocations: 310.8 kB / 1.35 GB, free: 7.621 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.062e-05/0.4251, allocations: 7.984 kB / 1.35 GB, free: 7.613 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.026e-05/0.4252, allocations: 8 kB / 1.35 GB, free: 7.605 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.4253, allocations: 20.78 kB / 1.35 GB, free: 7.582 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4253, allocations: 0 / 1.35 GB, free: 7.582 MB / 1.045 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001253/0.4254, allocations: 37.69 kB / 1.35 GB, free: 7.539 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4254, allocations: 8 kB / 1.35 GB, free: 7.531 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4254, allocations: 3.938 kB / 1.35 GB, free: 7.527 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.4254, allocations: 8.078 kB / 1.35 GB, free: 7.52 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.057e-05/0.4255, allocations: 4 kB / 1.35 GB, free: 7.516 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.4255, allocations: 0 / 1.35 GB, free: 7.516 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.186e-05/0.4256, allocations: 0 / 1.35 GB, free: 7.516 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.4256, allocations: 0 / 1.35 GB, free: 7.516 MB / 1.045 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 9.396e-05/0.4257, allocations: 117.8 kB / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-06/0.4257, allocations: 0 / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.866e-05/0.4257, allocations: 11.06 kB / 1.35 GB, free: 7.375 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.4257, allocations: 4 kB / 1.35 GB, free: 7.371 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.4257, allocations: 0 / 1.35 GB, free: 7.371 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.4257, allocations: 0 / 1.35 GB, free: 7.371 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.4259, allocations: 145.7 kB / 1.35 GB, free: 7.18 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.4259, allocations: 0 / 1.35 GB, free: 7.18 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.261e-05/0.4259, allocations: 3.984 kB / 1.35 GB, free: 7.176 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4259, allocations: 3.984 kB / 1.35 GB, free: 7.172 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.4259, allocations: 7.938 kB / 1.35 GB, free: 7.164 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.4259, allocations: 3.938 kB / 1.35 GB, free: 7.16 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4259, allocations: 0 / 1.35 GB, free: 7.16 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001643/0.4261, allocations: 73.11 kB / 1.35 GB, free: 7.07 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.356e-05/0.4261, allocations: 81.11 kB / 1.35 GB, free: 6.973 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.4261, allocations: 3.938 kB / 1.35 GB, free: 6.969 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.205e-05/0.4262, allocations: 4 kB / 1.35 GB, free: 6.965 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.619e-05/0.4262, allocations: 0 / 1.35 GB, free: 6.965 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.4262, allocations: 0 / 1.35 GB, free: 6.965 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.137e-05/0.4262, allocations: 79.31 kB / 1.351 GB, free: 6.887 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4262, allocations: 4 kB / 1.351 GB, free: 6.883 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001765/0.4264, allocations: 0 / 1.351 GB, free: 6.883 MB / 1.045 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.0005962/0.427, allocations: 0.6122 MB / 1.351 GB, free: 6.238 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001629/0.4272, allocations: 16.02 kB / 1.351 GB, free: 6.223 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4272, allocations: 0 / 1.351 GB, free: 6.223 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 4.613e-05/0.4272, allocations: 7.984 kB / 1.351 GB, free: 6.215 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.4274, allocations: 0 / 1.351 GB, free: 6.215 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004322/0.4278, allocations: 114.5 kB / 1.351 GB, free: 6.062 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.4281, allocations: 0.6767 MB / 1.352 GB, free: 5.359 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.278e-05/0.4282, allocations: 4.125 kB / 1.352 GB, free: 5.355 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.5e-05/0.4282, allocations: 7.438 kB / 1.352 GB, free: 5.352 MB / 1.045 GB Notification: Performance of SimCode: time 6.01e-07/0.4282, allocations: 0 / 1.352 GB, free: 5.352 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.4551, allocations: 0.9622 MB / 1.353 GB, free: 4.484 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/8.522, allocations: 7.984 kB / 1.353 GB, free: 4.477 MB / 1.045 GB " [Timeout remaining time 291] (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/jenkins1/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: 15.785337392939255]