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.007107/0.007107, allocations: 105.4 kB / 15.74 MB, free: 6.488 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.002131/0.002131, allocations: 196 kB / 16.68 MB, free: 6.375 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.91/2.91, allocations: 461.9 MB / 0.7348 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.89 kB / 1.054 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3148, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 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 NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical): time 0.002848/0.3177, allocations: 0.7475 MB / 1.208 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00182/0.3195, allocations: 1.147 MB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.3197, allocations: 8 kB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.3199, allocations: 19.8 kB / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.518e-05/0.3199, allocations: 11.88 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006054/0.3205, allocations: 130.1 kB / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.3208, allocations: 135.7 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.3209, allocations: 23.98 kB / 1.209 GB, free: 7.902 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.47e-05/0.321, allocations: 47.91 kB / 1.209 GB, free: 7.855 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.3211, allocations: 47.81 kB / 1.21 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.019e-05/0.3212, allocations: 8 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.445e-05/0.3213, allocations: 23.98 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.99e-05/0.3213, allocations: 3.938 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.889e-05/0.3214, allocations: 47.78 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.3216, allocations: 119.9 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.3216, allocations: 0 / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of FrontEnd: time 7.855e-06/0.3216, allocations: 0 / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.3217, allocations: 3.938 kB / 1.21 GB, free: 7.605 MB / 0.9669 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.0005852/0.3222, allocations: 405 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3223, allocations: 12.62 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.3224, allocations: 34.75 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.568e-05/0.3224, allocations: 8.844 kB / 1.21 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.3227, allocations: 208.2 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.3227, allocations: 4.375 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.3228, allocations: 12.36 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.3229, allocations: 72.77 kB / 1.21 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3229, allocations: 3.938 kB / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.3229, allocations: 4 kB / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.3229, allocations: 0 / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.129e-05/0.323, allocations: 19.98 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004899/0.3235, allocations: 0.4892 MB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.959e-05/0.3235, allocations: 18.58 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.781e-05/0.3236, allocations: 16.8 kB / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.3236, allocations: 0 / 1.211 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001086/0.3237, allocations: 67.28 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3237, allocations: 0 / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0001783/0.3239, allocations: 73.53 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.3239, allocations: 55.39 kB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.3241, allocations: 149.7 kB / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.3241, allocations: 29.7 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.765e-05/0.3242, allocations: 104.1 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.638e-06/0.3242, allocations: 3.906 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.3242, allocations: 29.7 kB / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.495e-05/0.3243, allocations: 322.8 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.323e-05/0.3244, allocations: 27.98 kB / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.048e-05/0.3245, allocations: 50.56 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.606e-05/0.3246, allocations: 84.27 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3246, allocations: 0 / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002402/0.3249, allocations: 147.2 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.3249, allocations: 41.78 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3249, allocations: 0 / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3249, allocations: 0 / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.637e-05/0.325, allocations: 4 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.325, allocations: 3.938 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.3252, allocations: 27.97 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.3252, allocations: 4 kB / 1.212 GB, free: 4.816 MB / 0.9669 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.486e-05/0.3253, allocations: 121.8 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.3253, allocations: 11.91 kB / 1.212 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.3253, allocations: 4.25 kB / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3253, allocations: 0 / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3253, allocations: 3.938 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3253, allocations: 4 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.3255, allocations: 173.6 kB / 1.212 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3255, allocations: 0 / 1.212 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.508e-06/0.3255, allocations: 4 kB / 1.212 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.3255, allocations: 0 / 1.212 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3255, allocations: 0 / 1.212 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3255, allocations: 11.88 kB / 1.212 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3255, allocations: 3.938 kB / 1.212 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001019/0.3256, allocations: 85.05 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.134e-05/0.3257, allocations: 85.02 kB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.3257, allocations: 0 / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.69e-05/0.3257, allocations: 0 / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.509e-05/0.3257, allocations: 3.938 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.3258, allocations: 4 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.722e-05/0.3258, allocations: 117.7 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3258, allocations: 0 / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002105/0.3261, allocations: 16 kB / 1.213 GB, free: 4.082 MB / 0.9669 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.0003746/0.3264, allocations: 0.6384 MB / 1.213 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002042/0.3266, allocations: 123.3 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3267, allocations: 4 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.893e-05/0.3267, allocations: 11.92 kB / 1.214 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.3269, allocations: 12 kB / 1.214 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.3284, allocations: 1.509 MB / 1.215 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.3286, allocations: 0.6962 MB / 1.216 GB, free: 0.918 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.327e-05/0.3287, allocations: 7.984 kB / 1.216 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.3287, allocations: 23.44 kB / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of SimCode: time 2.21e-07/0.3287, allocations: 0 / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.3482, allocations: 2.413 MB / 1.218 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.791/8.139, allocations: 7.938 kB / 1.218 GB, free: 14.62 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 & /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