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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 194.3 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.703/2.703, allocations: 469.4 MB / 0.742 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 69.58 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2489, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical): time 0.002151/0.2511, allocations: 0.7415 MB / 1.064 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.2525, allocations: 1.148 MB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.768e-05/0.2526, allocations: 4 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.2528, allocations: 23.78 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.413e-05/0.2528, allocations: 11.92 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.2533, allocations: 129.7 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.2535, allocations: 135.7 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.2536, allocations: 35.98 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.256e-05/0.2537, allocations: 43.89 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.972e-05/0.2538, allocations: 31.84 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.2538, allocations: 12 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.662e-05/0.2539, allocations: 27.92 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.059e-05/0.2539, allocations: 3.984 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.902e-05/0.254, allocations: 47.78 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.2542, allocations: 112 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2542, allocations: 7.938 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2542, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.2543, allocations: 0 / 1.066 GB, free: 11.98 MB / 0.8262 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.000468/0.2547, allocations: 405 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2548, allocations: 8.031 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.507e-05/0.2548, allocations: 38.75 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.2549, allocations: 12.83 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.2551, allocations: 200.1 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.2551, allocations: 8.359 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.2551, allocations: 12.38 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.2552, allocations: 68.77 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2553, allocations: 3.938 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.2553, allocations: 4 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.2553, allocations: 4 kB / 1.067 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.857e-05/0.2553, allocations: 15.98 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004259/0.2558, allocations: 0.4931 MB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.061e-05/0.2558, allocations: 18.58 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.69e-05/0.2558, allocations: 8.797 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-06/0.2558, allocations: 3.938 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001373/0.256, allocations: 63.45 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.256, allocations: 0 / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0001761/0.2562, allocations: 65.59 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.2562, allocations: 59.33 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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 selectInitializationVariablesDAE (initialization): time 0.0001368/0.2564, allocations: 153.6 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.2564, allocations: 29.7 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.2565, allocations: 96.12 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.281e-05/0.2565, allocations: 11.84 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.757e-05/0.2565, allocations: 33.7 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.671e-05/0.2566, allocations: 322.8 kB / 1.068 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.33e-05/0.2567, allocations: 27.98 kB / 1.068 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.195e-05/0.2568, allocations: 46.56 kB / 1.068 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001111/0.2569, allocations: 84.2 kB / 1.068 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2569, allocations: 4 kB / 1.068 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002396/0.2572, allocations: 147.2 kB / 1.068 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.2572, allocations: 39.25 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.2572, allocations: 0 / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.2572, allocations: 4 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.522e-05/0.2573, allocations: 240 / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.2573, allocations: 3.938 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.2575, allocations: 27.97 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.2575, allocations: 12.08 kB / 1.069 GB, free: 9.195 MB / 0.8262 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 8.174e-05/0.2576, allocations: 118.4 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.2577, allocations: 11.89 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.202e-05/0.2577, allocations: 4.25 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.2577, allocations: 4 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2577, allocations: 3.938 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2577, allocations: 3.984 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.2578, allocations: 173.7 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2578, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-06/0.2578, allocations: 4.062 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2579, allocations: 7.938 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.2579, allocations: 0 / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.2579, allocations: 3.984 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2579, allocations: 7.875 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.258, allocations: 85.02 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.258, allocations: 85.02 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.2581, allocations: 0 / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.759e-05/0.2581, allocations: 4 kB / 1.069 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.437e-05/0.2581, allocations: 11.92 kB / 1.069 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.2581, allocations: 0 / 1.069 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.96e-05/0.2582, allocations: 107.3 kB / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2582, allocations: 4 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002197/0.2584, allocations: 16 kB / 1.069 GB, free: 8.453 MB / 0.8262 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.000355/0.2588, allocations: 0.6241 MB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001987/0.259, allocations: 131.2 kB / 1.07 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.259, allocations: 0 / 1.07 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.886e-05/0.2591, allocations: 15.98 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.2593, allocations: 4 kB / 1.07 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.2607, allocations: 1.507 MB / 1.071 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.2609, allocations: 0.6885 MB / 1.072 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.259e-05/0.2609, allocations: 8 kB / 1.072 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.822e-05/0.261, allocations: 27.42 kB / 1.072 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.261, allocations: 0 / 1.072 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.2783, allocations: 2.374 MB / 1.074 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.207/7.485, allocations: 14.3 kB / 1.074 GB, free: 3.035 MB / 0.8262 GB (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 50 --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) 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) Reference file matches