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.001082/0.001082, 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.001095/0.001096, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.33/1.33, 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.527/2.527, allocations: 461.9 MB / 0.7346 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.22 kB / 0.8992 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2413, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical): time 0.001955/0.2432, allocations: 0.7451 MB / 1.054 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00127/0.2445, allocations: 1.155 MB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.213e-05/0.2446, allocations: 3.938 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.2448, allocations: 23.8 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.86e-05/0.2448, allocations: 7.922 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.2453, allocations: 135.2 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.2454, allocations: 135.7 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.2455, allocations: 27.98 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.238e-05/0.2456, allocations: 43.91 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.032e-05/0.2457, allocations: 31.84 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/0.2457, allocations: 8 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.545e-05/0.2458, allocations: 35.84 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.858e-05/0.2458, allocations: 12 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.089e-05/0.2459, allocations: 43.78 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.2461, allocations: 112 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2461, allocations: 0 / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2461, allocations: 0 / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.2461, allocations: 0 / 1.055 GB, free: 5.73 MB / 0.8106 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.0004103/0.2465, allocations: 401 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2466, allocations: 12.62 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.765e-05/0.2466, allocations: 30.75 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.2466, allocations: 12.84 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.2468, allocations: 216.1 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.2469, allocations: 4.375 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.2469, allocations: 12.36 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.247, allocations: 72.75 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.247, allocations: 3.938 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-06/0.247, allocations: 4 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.247, allocations: 0 / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.76e-05/0.2471, allocations: 19.92 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.2475, allocations: 497 kB / 1.057 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.92e-05/0.2475, allocations: 22.52 kB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.2476, allocations: 8.922 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.388e-06/0.2476, allocations: 11.94 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001207/0.2477, allocations: 51.39 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.2477, allocations: 0 / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0001677/0.2479, allocations: 69.53 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.2479, allocations: 51.41 kB / 1.057 GB, free: 4.043 MB / 0.8106 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.0001252/0.248, allocations: 156.2 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.2481, allocations: 25.7 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.272e-05/0.2481, allocations: 108 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.007e-06/0.2481, allocations: 4 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.2482, allocations: 29.7 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.2483, allocations: 318.8 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.73e-05/0.2484, allocations: 31.92 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.701e-05/0.2484, allocations: 46.56 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.593e-05/0.2485, allocations: 88.2 kB / 1.058 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2486, allocations: 0 / 1.058 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002261/0.2488, allocations: 151.2 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.2488, allocations: 33.7 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.2488, allocations: 7.984 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2488, allocations: 0 / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-05/0.2489, allocations: 0 / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.2489, allocations: 3.938 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.2491, allocations: 35.97 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.2491, allocations: 4 kB / 1.058 GB, free: 2.945 MB / 0.8106 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 7.692e-05/0.2492, allocations: 117.8 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.2492, allocations: 7.906 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.227e-05/0.2492, allocations: 12.19 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2493, allocations: 240 / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2493, allocations: 3.938 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2493, allocations: 4 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.2494, allocations: 185.6 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2494, allocations: 0 / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.58e-06/0.2494, allocations: 0 / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2494, allocations: 0 / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.2494, allocations: 4 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.2494, allocations: 64 / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.2494, allocations: 11.88 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.283e-05/0.2495, allocations: 85.52 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.27e-05/0.2496, allocations: 85.02 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.2496, allocations: 0 / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.733e-05/0.2496, allocations: 4 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.227e-05/0.2496, allocations: 3.938 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.2496, allocations: 0 / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.674e-05/0.2497, allocations: 120.5 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2497, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000207/0.2499, allocations: 20 kB / 1.058 GB, free: 2.195 MB / 0.8106 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.0003207/0.2503, allocations: 0.6202 MB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001904/0.2505, allocations: 127.2 kB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2505, allocations: 0 / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.804e-05/0.2505, allocations: 15.98 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001902/0.2507, allocations: 12.12 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.252, allocations: 1.497 MB / 1.061 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.2522, allocations: 0.6924 MB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.108e-05/0.2523, allocations: 4 kB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.2523, allocations: 23.42 kB / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2523, allocations: 0 / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6082/0.8605, allocations: 2.389 MB / 1.064 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/8.439, allocations: 16.62 kB / 1.064 GB, free: 12.77 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderLogical_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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