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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.007872/0.007872, allocations: 96.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.741/2.741, allocations: 469.4 MB / 0.7422 GB, free: 7.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.91 kB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2671, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.002047/0.2692, allocations: 0.7487 MB / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00136/0.2705, allocations: 1.151 MB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.772e-05/0.2706, allocations: 3.938 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.2708, allocations: 19.86 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.732e-05/0.2708, allocations: 11.86 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004655/0.2713, allocations: 131.7 kB / 1.222 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.2715, allocations: 139.7 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2716, allocations: 27.98 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.835e-05/0.2717, allocations: 39.92 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.264e-05/0.2718, allocations: 39.81 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.2718, allocations: 8 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.629e-05/0.2719, allocations: 23.98 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.2719, allocations: 19.92 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.302e-05/0.272, allocations: 39.8 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.2722, allocations: 119.5 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2722, allocations: 0 / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of FrontEnd: time 8.12e-07/0.2722, allocations: 0 / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.2722, allocations: 0 / 1.222 GB, free: 12.15 MB / 0.9825 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.0004395/0.2726, allocations: 414.4 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.2727, allocations: 8.031 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.2727, allocations: 34.75 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.2728, allocations: 16.83 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.273, allocations: 208.2 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.273, allocations: 4.375 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.273, allocations: 8.375 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.2731, allocations: 72.75 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.2732, allocations: 7.938 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/0.2732, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2732, allocations: 4 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.6e-05/0.2732, allocations: 12 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004302/0.2737, allocations: 493 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.379e-05/0.2737, allocations: 34.44 kB / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.931e-05/0.2737, allocations: 20.86 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-06/0.2738, allocations: 0 / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.285e-05/0.2739, allocations: 55.34 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2739, allocations: 0 / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0001713/0.274, allocations: 65.64 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.2741, allocations: 55.34 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.2742, allocations: 151.3 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.2742, allocations: 37.69 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/0.2743, allocations: 96.12 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.12e-05/0.2743, allocations: 7.953 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.117e-05/0.2744, allocations: 29.7 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.59e-05/0.2745, allocations: 318.8 kB / 1.224 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.648e-05/0.2746, allocations: 27.98 kB / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.2e-05/0.2747, allocations: 50.55 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001006/0.2748, allocations: 80.22 kB / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.2748, allocations: 0 / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002465/0.275, allocations: 159.5 kB / 1.225 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.2751, allocations: 33.7 kB / 1.225 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2751, allocations: 4 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.2751, allocations: 0 / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.337e-05/0.2751, allocations: 0 / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.2751, allocations: 8.031 kB / 1.225 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.2753, allocations: 35.92 kB / 1.225 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.2754, allocations: 11.98 kB / 1.225 GB, free: 9.344 MB / 0.9825 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.307e-05/0.2755, allocations: 117.8 kB / 1.225 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.2755, allocations: 7.953 kB / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.2755, allocations: 12.25 kB / 1.225 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2755, allocations: 3.984 kB / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2755, allocations: 7.938 kB / 1.225 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.2755, allocations: 0 / 1.225 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.2757, allocations: 169.7 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2757, allocations: 0 / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.694e-06/0.2757, allocations: 3.938 kB / 1.225 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2757, allocations: 0 / 1.225 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.2757, allocations: 7.984 kB / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2757, allocations: 3.938 kB / 1.225 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2757, allocations: 3.938 kB / 1.225 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000101/0.2758, allocations: 85.11 kB / 1.225 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.2759, allocations: 81.06 kB / 1.225 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.2759, allocations: 0 / 1.225 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.944e-05/0.2759, allocations: 4 kB / 1.225 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.46e-05/0.2759, allocations: 11.86 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.276, allocations: 4 kB / 1.225 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.725e-05/0.276, allocations: 108.6 kB / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.276, allocations: 0 / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002177/0.2763, allocations: 19.98 kB / 1.225 GB, free: 8.605 MB / 0.9825 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.0003666/0.2766, allocations: 0.6319 MB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.2768, allocations: 127.2 kB / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2769, allocations: 0 / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.397e-05/0.2769, allocations: 12 kB / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.2771, allocations: 12.19 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.2786, allocations: 1.514 MB / 1.228 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/0.2788, allocations: 0.6924 MB / 1.228 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.655e-05/0.2788, allocations: 8 kB / 1.228 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.928e-05/0.2789, allocations: 24.17 kB / 1.228 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2789, allocations: 0 / 1.228 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.2955, allocations: 2.413 MB / 1.231 GB, free: 3.156 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.422/7.718, allocations: 10.19 kB / 1.231 GB, free: 3.148 MB / 0.9825 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