Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.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.00142/0.00142, allocations: 108.2 kB / 16.45 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.001388/0.001388, 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.416/1.416, allocations: 230.6 MB / 252.8 MB, free: 9.129 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.12/3.12, allocations: 0.505 GB / 0.8066 GB, free: 23.11 MB / 0.6231 GB " [Timeout remaining time 177] 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.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderLogical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderLogical",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.001995/0.001995, allocations: 68.95 kB / 1.172 GB, free: 17.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3834, allocations: 180.2 MB / 1.348 GB, free: 9.969 MB / 1.045 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/Templates/Plants/Controls/Utilities/PlaceholderLogical.mo:9:3-11:47:writable] Warning: Parameter phInp.u_internal has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value. Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical): time 0.002195/0.3856, allocations: 0.7466 MB / 1.348 GB, free: 9.223 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.3871, allocations: 1.178 MB / 1.35 GB, free: 8.031 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.608e-05/0.3872, allocations: 4 kB / 1.35 GB, free: 8.027 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.3873, allocations: 19.8 kB / 1.35 GB, free: 8.008 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 3.559e-05/0.3874, allocations: 11.86 kB / 1.35 GB, free: 7.996 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.3878, allocations: 141.8 kB / 1.35 GB, free: 7.859 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.388, allocations: 119.8 kB / 1.35 GB, free: 7.742 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.3881, allocations: 28.2 kB / 1.35 GB, free: 7.715 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.085e-05/0.3882, allocations: 47.83 kB / 1.35 GB, free: 7.668 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 9.837e-05/0.3883, allocations: 43.77 kB / 1.35 GB, free: 7.625 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.3883, allocations: 8 kB / 1.35 GB, free: 7.617 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.354e-05/0.3884, allocations: 23.98 kB / 1.35 GB, free: 7.594 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.3884, allocations: 8 kB / 1.35 GB, free: 7.586 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.808e-05/0.3885, allocations: 47.77 kB / 1.35 GB, free: 7.539 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.3887, allocations: 115.6 kB / 1.35 GB, free: 7.426 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3887, allocations: 0 / 1.35 GB, free: 7.426 MB / 1.045 GB Notification: Performance of FrontEnd: time 9.02e-07/0.3887, allocations: 4 kB / 1.35 GB, free: 7.422 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.3887, allocations: 0 / 1.35 GB, free: 7.422 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005556/0.3892, allocations: 412.8 kB / 1.351 GB, free: 6.961 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3893, allocations: 11.98 kB / 1.351 GB, free: 6.949 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.243e-05/0.3893, allocations: 34.69 kB / 1.351 GB, free: 6.906 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.3894, allocations: 12.89 kB / 1.351 GB, free: 6.895 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.3896, allocations: 204.2 kB / 1.351 GB, free: 6.656 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.3896, allocations: 12.31 kB / 1.351 GB, free: 6.645 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.3897, allocations: 4.375 kB / 1.351 GB, free: 6.641 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.3898, allocations: 76.8 kB / 1.351 GB, free: 6.551 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.3898, allocations: 3.938 kB / 1.351 GB, free: 6.547 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.3898, allocations: 7.938 kB / 1.351 GB, free: 6.539 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.3898, allocations: 0 / 1.351 GB, free: 6.539 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.803e-05/0.3898, allocations: 15.98 kB / 1.351 GB, free: 6.523 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.3903, allocations: 0.4892 MB / 1.351 GB, free: 5.977 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.044e-05/0.3904, allocations: 18.58 kB / 1.351 GB, free: 5.949 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.514e-05/0.3904, allocations: 4.859 kB / 1.351 GB, free: 5.941 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 6.772e-06/0.3904, allocations: 0 / 1.351 GB, free: 5.941 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001077/0.3905, allocations: 67.39 kB / 1.352 GB, free: 5.863 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.3905, allocations: 0 / 1.352 GB, free: 5.863 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0001847/0.3907, allocations: 65.64 kB / 1.352 GB, free: 5.793 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.3908, allocations: 51.41 kB / 1.352 GB, free: 5.73 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.3909, allocations: 156.5 kB / 1.352 GB, free: 5.57 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.3909, allocations: 29.7 kB / 1.352 GB, free: 5.535 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.391, allocations: 100.1 kB / 1.352 GB, free: 5.434 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.114e-05/0.391, allocations: 3.953 kB / 1.352 GB, free: 5.43 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.27e-05/0.3911, allocations: 33.7 kB / 1.352 GB, free: 5.391 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3912, allocations: 326.8 kB / 1.352 GB, free: 5.062 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.575e-05/0.3913, allocations: 27.98 kB / 1.352 GB, free: 5.035 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.033e-05/0.3914, allocations: 47.12 kB / 1.352 GB, free: 4.98 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.3915, allocations: 76.5 kB / 1.352 GB, free: 4.891 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3915, allocations: 4 kB / 1.352 GB, free: 4.887 MB / 1.045 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002649/0.3918, allocations: 155.2 kB / 1.353 GB, free: 4.723 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/0.3918, allocations: 37.69 kB / 1.353 GB, free: 4.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3918, allocations: 7.938 kB / 1.353 GB, free: 4.672 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3918, allocations: 0 / 1.353 GB, free: 4.672 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.408e-05/0.3918, allocations: 0 / 1.353 GB, free: 4.672 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3918, allocations: 7.938 kB / 1.353 GB, free: 4.664 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.392, allocations: 23.97 kB / 1.353 GB, free: 4.641 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.3921, allocations: 8.094 kB / 1.353 GB, free: 4.633 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: 4 (pul.y,$PRE.pul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.745e-05/0.3922, allocations: 125.8 kB / 1.353 GB, free: 4.5 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.3922, allocations: 7.953 kB / 1.353 GB, free: 4.492 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.176e-05/0.3922, allocations: 16.19 kB / 1.353 GB, free: 4.465 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3922, allocations: 0 / 1.353 GB, free: 4.465 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3922, allocations: 3.938 kB / 1.353 GB, free: 4.461 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.3922, allocations: 64 / 1.353 GB, free: 4.461 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.3924, allocations: 177.6 kB / 1.353 GB, free: 4.238 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.3924, allocations: 0 / 1.353 GB, free: 4.238 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-06/0.3924, allocations: 4 kB / 1.353 GB, free: 4.234 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3924, allocations: 0 / 1.353 GB, free: 4.234 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-06/0.3924, allocations: 4 kB / 1.353 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3924, allocations: 0 / 1.353 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3924, allocations: 3.938 kB / 1.353 GB, free: 4.227 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001135/0.3925, allocations: 88.97 kB / 1.353 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.3926, allocations: 85.05 kB / 1.353 GB, free: 4.02 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.3926, allocations: 4 kB / 1.353 GB, free: 4.016 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.764e-05/0.3926, allocations: 4 kB / 1.353 GB, free: 4.012 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.694e-05/0.3926, allocations: 3.938 kB / 1.353 GB, free: 4.008 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.3926, allocations: 4 kB / 1.353 GB, free: 4.004 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.155e-05/0.3927, allocations: 111.2 kB / 1.353 GB, free: 3.895 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3927, allocations: 0 / 1.353 GB, free: 3.895 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002029/0.3929, allocations: 19.94 kB / 1.353 GB, free: 3.875 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: 3 ($whenCondition1,$whenCondition2,pul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004587/0.3934, allocations: 0.634 MB / 1.354 GB, free: 3.215 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001992/0.3936, allocations: 107.3 kB / 1.354 GB, free: 3.098 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3936, allocations: 4 kB / 1.354 GB, free: 3.094 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 2.58e-05/0.3936, allocations: 7.938 kB / 1.354 GB, free: 3.086 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.3938, allocations: 16.06 kB / 1.354 GB, free: 3.074 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.3954, allocations: 1.512 MB / 1.356 GB, free: 1.457 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.3958, allocations: 0.693 MB / 1.356 GB, free: 0.7383 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.379e-05/0.3958, allocations: 7.984 kB / 1.356 GB, free: 0.7305 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.829e-05/0.3958, allocations: 15.44 kB / 1.356 GB, free: 0.7148 MB / 1.045 GB Notification: Performance of SimCode: time 2.91e-07/0.3958, allocations: 0 / 1.356 GB, free: 0.7148 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.4219, allocations: 2.438 MB / 1.359 GB, free: 14.43 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.807/8.229, allocations: 8.312 kB / 1.359 GB, free: 14.43 MB / 1.061 GB " [Timeout remaining time 292] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_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_Templates_Plants_Controls_Utilities_Validation_PlaceholderLogical.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderLogical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable phNo.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.csv. Warning: Get data of variable phNo.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.csv failed! Error: Could not read variable phPar.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.csv. Warning: Get data of variable phPar.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.csv failed! Error: Could not read variable phInp.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.csv. Warning: Get data of variable phInp.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.730360235087574]