Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.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.001983/0.001983, allocations: 107.3 kB / 16.46 MB, free: 6.508 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.002447/0.002447, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.495/1.495, allocations: 230.6 MB / 252.8 MB, free: 9.09 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.334/3.334, allocations: 0.505 GB / 0.8066 GB, free: 23.18 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.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",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.002067/0.002067, allocations: 72.53 kB / 1.172 GB, free: 17.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.366, allocations: 180.2 MB / 1.348 GB, free: 9.863 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002267/0.3683, allocations: 0.8663 MB / 1.349 GB, free: 9.004 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.3696, allocations: 0.921 MB / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.573e-05/0.3697, allocations: 0 / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.993e-05/0.3697, allocations: 11.88 kB / 1.35 GB, free: 8.059 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.3698, allocations: 23.73 kB / 1.35 GB, free: 8.035 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.3701, allocations: 35.94 kB / 1.35 GB, free: 8 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.3702, allocations: 119.6 kB / 1.35 GB, free: 7.883 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.3704, allocations: 21.09 kB / 1.35 GB, free: 7.859 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/0.3706, allocations: 51.84 kB / 1.35 GB, free: 7.809 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.3707, allocations: 59.75 kB / 1.35 GB, free: 7.75 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.375e-05/0.3707, allocations: 8 kB / 1.35 GB, free: 7.742 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 5.487e-05/0.3708, allocations: 23.94 kB / 1.35 GB, free: 7.719 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.894e-05/0.3708, allocations: 27.91 kB / 1.35 GB, free: 7.691 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.3709, allocations: 55.66 kB / 1.35 GB, free: 7.637 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.3711, allocations: 119.7 kB / 1.35 GB, free: 7.52 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3711, allocations: 3.984 kB / 1.35 GB, free: 7.516 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3711, allocations: 0 / 1.35 GB, free: 7.516 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.3711, allocations: 0 / 1.35 GB, free: 7.516 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000785/0.3719, allocations: 446.8 kB / 1.351 GB, free: 7.027 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3719, allocations: 11.98 kB / 1.351 GB, free: 7.016 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.51e-05/0.372, allocations: 46.73 kB / 1.351 GB, free: 6.961 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002562/0.3722, allocations: 28.83 kB / 1.351 GB, free: 6.934 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005334/0.3727, allocations: 265 kB / 1.351 GB, free: 6.637 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.3728, allocations: 4.375 kB / 1.351 GB, free: 6.633 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.3728, allocations: 8.375 kB / 1.351 GB, free: 6.625 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.3731, allocations: 112.5 kB / 1.351 GB, free: 6.5 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3731, allocations: 3.984 kB / 1.351 GB, free: 6.496 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.3731, allocations: 4 kB / 1.351 GB, free: 6.492 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3731, allocations: 0 / 1.351 GB, free: 6.492 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.3734, allocations: 75.88 kB / 1.351 GB, free: 6.418 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006656/0.3741, allocations: 0.4932 MB / 1.352 GB, free: 5.867 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.3744, allocations: 119.7 kB / 1.352 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.3745, allocations: 54.59 kB / 1.352 GB, free: 5.66 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.3746, allocations: 0 / 1.352 GB, free: 5.66 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.3746, allocations: 38.56 kB / 1.352 GB, free: 5.613 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 9.41e-07/0.3746, allocations: 0 / 1.352 GB, free: 5.613 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0006274/0.3752, allocations: 157.5 kB / 1.352 GB, free: 5.453 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.3753, allocations: 114.7 kB / 1.352 GB, free: 5.316 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.3754, allocations: 144.5 kB / 1.352 GB, free: 5.164 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.3755, allocations: 33.7 kB / 1.352 GB, free: 5.125 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.689e-05/0.3755, allocations: 108.2 kB / 1.352 GB, free: 5.012 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.3756, allocations: 27.91 kB / 1.352 GB, free: 4.984 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.759e-05/0.3756, allocations: 29.86 kB / 1.352 GB, free: 4.949 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3758, allocations: 330.8 kB / 1.353 GB, free: 4.617 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.376, allocations: 35.97 kB / 1.353 GB, free: 4.582 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.3762, allocations: 81.11 kB / 1.353 GB, free: 4.484 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.3765, allocations: 98.45 kB / 1.353 GB, free: 4.379 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3765, allocations: 0 / 1.353 GB, free: 4.379 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003924/0.3769, allocations: 141.5 kB / 1.353 GB, free: 4.234 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.3769, allocations: 4 kB / 1.353 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3769, allocations: 4 kB / 1.353 GB, free: 4.227 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3769, allocations: 4 kB / 1.353 GB, free: 4.223 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.377, allocations: 19.97 kB / 1.353 GB, free: 4.203 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.377, allocations: 3.938 kB / 1.353 GB, free: 4.199 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.3772, allocations: 19.92 kB / 1.353 GB, free: 4.18 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.3772, allocations: 4 kB / 1.353 GB, free: 4.176 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001217/0.3773, allocations: 130.4 kB / 1.353 GB, free: 4.039 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.794e-05/0.3774, allocations: 7.953 kB / 1.353 GB, free: 4.031 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.3777, allocations: 89.89 kB / 1.353 GB, free: 3.93 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3777, allocations: 3.938 kB / 1.353 GB, free: 3.926 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3777, allocations: 8 kB / 1.353 GB, free: 3.918 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3777, allocations: 4 kB / 1.353 GB, free: 3.914 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.378, allocations: 201.9 kB / 1.353 GB, free: 3.668 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.378, allocations: 0 / 1.353 GB, free: 3.668 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.3781, allocations: 23.97 kB / 1.353 GB, free: 3.645 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3782, allocations: 4 kB / 1.353 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.3782, allocations: 0 / 1.353 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3782, allocations: 0 / 1.353 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.3782, allocations: 4 kB / 1.353 GB, free: 3.637 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.3787, allocations: 381.8 kB / 1.354 GB, free: 3.246 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.241e-05/0.3787, allocations: 92.95 kB / 1.354 GB, free: 3.137 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.3787, allocations: 4 kB / 1.354 GB, free: 3.133 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.379, allocations: 11.98 kB / 1.354 GB, free: 3.121 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/0.379, allocations: 27.95 kB / 1.354 GB, free: 3.094 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.379, allocations: 3.938 kB / 1.354 GB, free: 3.09 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.989e-05/0.3791, allocations: 120.9 kB / 1.354 GB, free: 2.973 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3791, allocations: 0 / 1.354 GB, free: 2.973 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003282/0.3795, allocations: 16 kB / 1.354 GB, free: 2.957 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0008504/0.3803, allocations: 0.9062 MB / 1.355 GB, free: 2.023 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003875/0.3807, allocations: 95.86 kB / 1.355 GB, free: 1.93 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3807, allocations: 0 / 1.355 GB, free: 1.93 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.3809, allocations: 51.91 kB / 1.355 GB, free: 1.879 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.3814, allocations: 18.12 kB / 1.355 GB, free: 1.863 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.3839, allocations: 1.809 MB / 1.357 GB, free: 15.95 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.3843, allocations: 0.7041 MB / 1.358 GB, free: 15.22 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.008e-05/0.3844, allocations: 16.64 kB / 1.358 GB, free: 15.21 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.427e-05/0.3844, allocations: 31.42 kB / 1.358 GB, free: 15.18 MB / 1.061 GB Notification: Performance of SimCode: time 5.01e-07/0.3844, allocations: 0 / 1.358 GB, free: 15.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.4109, allocations: 2.711 MB / 1.36 GB, free: 12.57 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.387/8.798, allocations: 13.81 kB / 1.36 GB, free: 12.56 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_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_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable hysteresis.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! Error: Could not read variable hysteresis1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! Error: Could not read variable hysteresis2.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis2.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.827969216974452]