Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001471/0.001471, allocations: 104.2 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.001901/0.001901, allocations: 210.4 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.493/1.493, allocations: 230.6 MB / 252.8 MB, free: 9.113 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.431/3.431, allocations: 0.49 GB / 0.7916 GB, free: 33.61 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_12_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.002031/0.002031, allocations: 72.84 kB / 1.149 GB, free: 26.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4377/0.4397, allocations: 176.1 MB / 1.321 GB, free: 3.285 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.001746/0.4415, allocations: 0.5748 MB / 1.321 GB, free: 2.715 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002521/0.4417, allocations: 51.78 kB / 1.321 GB, free: 2.664 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.512e-05/0.4417, allocations: 0 / 1.321 GB, free: 2.664 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.232e-05/0.4417, allocations: 0 / 1.321 GB, free: 2.664 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.4417, allocations: 4 kB / 1.321 GB, free: 2.66 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.442, allocations: 15.92 kB / 1.321 GB, free: 2.645 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 4.541e-05/0.442, allocations: 4 kB / 1.321 GB, free: 2.641 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.53e-05/0.4421, allocations: 4 kB / 1.321 GB, free: 2.637 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.433e-05/0.4421, allocations: 0 / 1.321 GB, free: 2.637 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 1.851e-05/0.4421, allocations: 0 / 1.321 GB, free: 2.637 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.235e-06/0.4421, allocations: 0 / 1.321 GB, free: 2.637 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.4422, allocations: 27.91 kB / 1.322 GB, free: 2.609 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.4422, allocations: 3.984 kB / 1.322 GB, free: 2.605 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.405e-05/0.4422, allocations: 0 / 1.322 GB, free: 2.605 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 8.744e-05/0.4423, allocations: 24.2 kB / 1.322 GB, free: 2.582 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4423, allocations: 0 / 1.322 GB, free: 2.582 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.302e-06/0.4423, allocations: 0 / 1.322 GB, free: 2.582 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.4423, allocations: 0 / 1.322 GB, free: 2.582 MB / 1.014 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.0003998/0.4427, allocations: 315.5 kB / 1.322 GB, free: 2.223 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4428, allocations: 11.98 kB / 1.322 GB, free: 2.211 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.244e-05/0.4428, allocations: 30.75 kB / 1.322 GB, free: 2.172 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.443, allocations: 24.91 kB / 1.322 GB, free: 2.148 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.4431, allocations: 164.4 kB / 1.322 GB, free: 1.949 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.362e-06/0.4432, allocations: 384 / 1.322 GB, free: 1.949 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.4432, allocations: 4.312 kB / 1.322 GB, free: 1.945 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.4433, allocations: 38.23 kB / 1.322 GB, free: 1.902 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.4433, allocations: 3.938 kB / 1.322 GB, free: 1.898 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.4433, allocations: 0 / 1.322 GB, free: 1.898 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.4433, allocations: 0 / 1.322 GB, free: 1.898 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.312e-05/0.4434, allocations: 11.98 kB / 1.322 GB, free: 1.887 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001538/0.4436, allocations: 153.7 kB / 1.322 GB, free: 1.688 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 8.194e-05/0.4437, allocations: 18.61 kB / 1.322 GB, free: 1.66 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.985e-05/0.4437, allocations: 17.25 kB / 1.322 GB, free: 1.641 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.4438, allocations: 0 / 1.322 GB, free: 1.641 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.4438, allocations: 30.56 kB / 1.322 GB, free: 1.602 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.4438, allocations: 0 / 1.322 GB, free: 1.602 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.000245/0.444, allocations: 53.61 kB / 1.322 GB, free: 1.543 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.4441, allocations: 51.41 kB / 1.322 GB, free: 1.48 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.449e-05/0.4441, allocations: 93.86 kB / 1.323 GB, free: 1.379 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.4441, allocations: 25.7 kB / 1.323 GB, free: 1.348 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.55e-05/0.4442, allocations: 80.14 kB / 1.323 GB, free: 1.266 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.4442, allocations: 7.953 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.4442, allocations: 9.844 kB / 1.323 GB, free: 1.242 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4444, allocations: 314.8 kB / 1.323 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.35e-05/0.4444, allocations: 11.92 kB / 1.323 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-05/0.4445, allocations: 4 kB / 1.323 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.4446, allocations: 20.84 kB / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4446, allocations: 0 / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001337/0.4447, allocations: 45.73 kB / 1.323 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.4447, allocations: 7.938 kB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.4447, allocations: 3.938 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.4447, allocations: 0 / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.491e-05/0.4448, allocations: 4 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.4448, allocations: 3.938 kB / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.766e-05/0.4448, allocations: 4 kB / 1.323 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-06/0.4448, allocations: 3.984 kB / 1.323 GB, free: 0.8086 MB / 1.014 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 7.292e-05/0.4449, allocations: 113.8 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.4449, allocations: 0 / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.03e-05/0.445, allocations: 7.062 kB / 1.323 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.445, allocations: 4 kB / 1.323 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.445, allocations: 0 / 1.323 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.445, allocations: 0 / 1.323 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001102/0.4451, allocations: 149.7 kB / 1.323 GB, free: 492 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4451, allocations: 4 kB / 1.323 GB, free: 488 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.4451, allocations: 4 kB / 1.323 GB, free: 484 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.4451, allocations: 4 kB / 1.323 GB, free: 480 kB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.4451, allocations: 3.938 kB / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.4451, allocations: 0 / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4451, allocations: 0 / 1.323 GB, free: 476 kB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001526/0.4453, allocations: 69.11 kB / 1.323 GB, free: 388 kB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.4453, allocations: 77.11 kB / 1.323 GB, free: 292 kB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.4453, allocations: 3.938 kB / 1.323 GB, free: 288 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.515e-05/0.4454, allocations: 12.03 kB / 1.323 GB, free: 276 kB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.4454, allocations: 3.938 kB / 1.323 GB, free: 272 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.4454, allocations: 3.984 kB / 1.323 GB, free: 268 kB / 1.014 GB Notification: Performance of sorting global known variables: time 3.494e-05/0.4454, allocations: 75.28 kB / 1.324 GB, free: 192 kB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.4454, allocations: 0 / 1.324 GB, free: 192 kB / 1.014 GB Notification: Performance of remove unused functions: time 0.0001764/0.4456, allocations: 0 / 1.324 GB, free: 192 kB / 1.014 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.0005732/0.4462, allocations: 0.6046 MB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001489/0.4463, allocations: 11.98 kB / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4463, allocations: 0 / 1.324 GB, free: 15.54 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.742e-05/0.4464, allocations: 11.92 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.4465, allocations: 4.156 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003611/0.4469, allocations: 118.5 kB / 1.324 GB, free: 15.37 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.4472, allocations: 0.6729 MB / 1.325 GB, free: 14.67 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.343e-05/0.4472, allocations: 11.92 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.736e-05/0.4472, allocations: 7.438 kB / 1.325 GB, free: 14.65 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.4472, allocations: 4 kB / 1.325 GB, free: 14.64 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.4744, allocations: 0.9497 MB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/8.275, allocations: 22.95 kB / 1.326 GB, free: 13.77 MB / 1.029 GB " [Timeout remaining time 292] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegStep_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_RegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.366162066115066]