Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.PlaceholderReal,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderReal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderReal",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.007678/0.007678, allocations: 98.48 kB / 15.73 MB, free: 6.004 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.002081/0.002081, allocations: 192.8 kB / 16.67 MB, free: 5.934 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.914/2.914, allocations: 482.4 MB / 0.7548 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 59.91 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2872, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal): time 0.002127/0.2894, allocations: 0.9305 MB / 1.242 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001522/0.2909, allocations: 1.17 MB / 1.243 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.152e-05/0.291, allocations: 4 kB / 1.243 GB, free: 8.074 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.2912, allocations: 23.73 kB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.117e-05/0.2912, allocations: 19.84 kB / 1.244 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.2917, allocations: 150.8 kB / 1.244 GB, free: 7.887 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Templates/Plants/Controls/Utilities/PlaceholderReal.mo:9:3-12:47:writable] Warning: Parameter phInp.u_internal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of NFFlatten.flatten: time 0.0002465/0.2919, allocations: 175.6 kB / 1.244 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.2921, allocations: 41.38 kB / 1.244 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.805e-05/0.2922, allocations: 59.83 kB / 1.244 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.2923, allocations: 51.7 kB / 1.244 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.2923, allocations: 16 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.611e-05/0.2924, allocations: 27.98 kB / 1.244 GB, free: 7.52 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.895e-05/0.2924, allocations: 23.91 kB / 1.244 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.268e-05/0.2925, allocations: 51.78 kB / 1.244 GB, free: 7.445 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002354/0.2928, allocations: 167.3 kB / 1.244 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2928, allocations: 3.938 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2928, allocations: 0 / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.2928, allocations: 4 kB / 1.244 GB, free: 7.273 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005608/0.2934, allocations: 448.6 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.2934, allocations: 8.031 kB / 1.245 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.428e-05/0.2934, allocations: 38.75 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.318e-05/0.2935, allocations: 12.89 kB / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.2938, allocations: 216.2 kB / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.2938, allocations: 8.375 kB / 1.245 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.2938, allocations: 12.38 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.294, allocations: 84.75 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.294, allocations: 3.938 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.294, allocations: 4 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.294, allocations: 0 / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.386e-05/0.2941, allocations: 27.98 kB / 1.245 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005721/0.2947, allocations: 0.5477 MB / 1.246 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.624e-05/0.2948, allocations: 30.5 kB / 1.246 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.596e-05/0.2948, allocations: 12.92 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.2948, allocations: 4 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001231/0.2949, allocations: 67.38 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.312e-06/0.2949, allocations: 3.938 kB / 1.246 GB, free: 5.562 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4): time 0.0002005/0.2951, allocations: 85.53 kB / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.2952, allocations: 59.39 kB / 1.246 GB, free: 5.402 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Templates/Plants/Controls/Utilities/PlaceholderReal.mo:9:3-12:47:writable] Warning: Parameter phInp.u_internal has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.2954, allocations: 169.9 kB / 1.246 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.2954, allocations: 25.7 kB / 1.246 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.2955, allocations: 108.1 kB / 1.246 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.2955, allocations: 7.906 kB / 1.246 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.32e-05/0.2956, allocations: 33.7 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.2958, allocations: 322.8 kB / 1.247 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.337e-05/0.2959, allocations: 35.98 kB / 1.247 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.296, allocations: 58.55 kB / 1.247 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001303/0.2961, allocations: 88.22 kB / 1.247 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2961, allocations: 8 kB / 1.247 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003038/0.2964, allocations: 167.2 kB / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.2965, allocations: 37.7 kB / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2965, allocations: 0 / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.2965, allocations: 0 / 1.247 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.006e-05/0.2966, allocations: 4 kB / 1.247 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.2966, allocations: 3.938 kB / 1.247 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.2968, allocations: 35.84 kB / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.2968, allocations: 8.062 kB / 1.247 GB, free: 4.234 MB / 0.9981 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 ($whenCondition1,$whenCondition2,pul.booPul.y,$PRE.pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 0.0001058/0.2969, allocations: 117.8 kB / 1.247 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.2969, allocations: 11.89 kB / 1.247 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.297, allocations: 16.98 kB / 1.247 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.297, allocations: 4 kB / 1.247 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.297, allocations: 3.938 kB / 1.247 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.297, allocations: 0 / 1.247 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.2972, allocations: 193.6 kB / 1.247 GB, free: 3.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2972, allocations: 4 kB / 1.247 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.503e-05/0.2972, allocations: 4 kB / 1.247 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.2972, allocations: 0 / 1.247 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.2972, allocations: 0 / 1.247 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2972, allocations: 4 kB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.2973, allocations: 3.938 kB / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000144/0.2974, allocations: 101 kB / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.46e-05/0.2975, allocations: 81.06 kB / 1.247 GB, free: 3.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.2975, allocations: 7.938 kB / 1.247 GB, free: 3.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.208e-05/0.2975, allocations: 4 kB / 1.247 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.648e-05/0.2976, allocations: 3.938 kB / 1.247 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.2976, allocations: 15.92 kB / 1.248 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001116/0.2977, allocations: 124.9 kB / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2977, allocations: 0 / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002239/0.2979, allocations: 20 kB / 1.248 GB, free: 3.422 MB / 0.9981 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.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.0004689/0.2984, allocations: 0.6397 MB / 1.248 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002338/0.2986, allocations: 135.3 kB / 1.248 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2986, allocations: 0 / 1.248 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.728e-05/0.2987, allocations: 16.42 kB / 1.248 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.2989, allocations: 30.61 kB / 1.248 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.3009, allocations: 1.685 MB / 1.25 GB, free: 0.7773 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3012, allocations: 0.7001 MB / 1.251 GB, free: 52 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.821e-05/0.3013, allocations: 8.422 kB / 1.251 GB, free: 44 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.665e-05/0.3013, allocations: 27.44 kB / 1.251 GB, free: 16 kB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.3013, allocations: 4 kB / 1.251 GB, free: 12 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4974/0.7987, allocations: 2.863 MB / 1.254 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.556, allocations: 16.22 kB / 1.254 GB, free: 14.74 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderReal.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderReal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderReal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches