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 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.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.004112/0.004112, 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.001208/0.001208, allocations: 198.6 kB / 16.68 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.301/1.301, 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 12.0.0-master/package.mo): time 2.601/2.601, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 63.91 kB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2646, allocations: 162.3 MB / 1.242 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical): time 0.00166/0.2663, allocations: 0.7307 MB / 1.243 GB, free: 9.117 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001321/0.2677, allocations: 1.135 MB / 1.244 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.619e-05/0.2678, allocations: 4 kB / 1.244 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001193/0.2679, allocations: 19.8 kB / 1.244 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.688e-05/0.2679, allocations: 15.8 kB / 1.244 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004194/0.2683, allocations: 143.4 kB / 1.244 GB, free: 7.793 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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 NFFlatten.flatten: time 0.0001761/0.2685, allocations: 131.7 kB / 1.244 GB, free: 7.664 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.923e-05/0.2686, allocations: 35.97 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.772e-05/0.2687, allocations: 43.84 kB / 1.244 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.921e-05/0.2688, allocations: 39.83 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.673e-05/0.2688, allocations: 12 kB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.569e-05/0.2689, allocations: 23.98 kB / 1.244 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.2689, allocations: 11.92 kB / 1.244 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.269, allocations: 43.78 kB / 1.244 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.2692, allocations: 111.6 kB / 1.244 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2692, allocations: 4 kB / 1.244 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2692, allocations: 0 / 1.244 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.2692, allocations: 0 / 1.244 GB, free: 7.344 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004525/0.2696, allocations: 412.8 kB / 1.245 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.2697, allocations: 8.031 kB / 1.245 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.922e-05/0.2697, allocations: 34.75 kB / 1.245 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.2698, allocations: 8.891 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.27, allocations: 220.1 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.27, allocations: 8.359 kB / 1.245 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.2701, allocations: 12.36 kB / 1.245 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.2702, allocations: 68.83 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.2702, allocations: 7.875 kB / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.2702, allocations: 4 kB / 1.245 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2702, allocations: 0 / 1.245 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.693e-05/0.2703, allocations: 19.92 kB / 1.245 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004316/0.2707, allocations: 497 kB / 1.246 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.912e-05/0.2707, allocations: 22.58 kB / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.2708, allocations: 12.91 kB / 1.246 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 6.211e-06/0.2708, allocations: 0 / 1.246 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.153e-05/0.2709, allocations: 59.34 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.2709, allocations: 0 / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0001659/0.2711, allocations: 69.62 kB / 1.246 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.2711, allocations: 55.41 kB / 1.246 GB, free: 5.637 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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 selectInitializationVariablesDAE (initialization): time 0.0001487/0.2713, allocations: 152 kB / 1.246 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.2713, allocations: 25.7 kB / 1.246 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.42e-05/0.2714, allocations: 104.1 kB / 1.246 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.846e-06/0.2714, allocations: 7.953 kB / 1.246 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.989e-05/0.2714, allocations: 29.7 kB / 1.246 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.2716, allocations: 326.8 kB / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.768e-05/0.2716, allocations: 23.98 kB / 1.246 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.238e-05/0.2717, allocations: 50.5 kB / 1.246 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.2718, allocations: 80.27 kB / 1.247 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2718, allocations: 4 kB / 1.247 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002293/0.2721, allocations: 147.2 kB / 1.247 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.399e-05/0.2721, allocations: 41.69 kB / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2721, allocations: 0 / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.2721, allocations: 0 / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.579e-05/0.2722, allocations: 3.938 kB / 1.247 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.2722, allocations: 7.938 kB / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.2724, allocations: 32 kB / 1.247 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.962e-05/0.2724, allocations: 7.984 kB / 1.247 GB, free: 4.539 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 (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.33e-05/0.2725, allocations: 114.4 kB / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.2725, allocations: 7.953 kB / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.2725, allocations: 8.25 kB / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2725, allocations: 240 / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2725, allocations: 3.938 kB / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2726, allocations: 11.91 kB / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.2727, allocations: 177.6 kB / 1.247 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2727, allocations: 4 kB / 1.247 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.939e-06/0.2727, allocations: 0 / 1.247 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2727, allocations: 4 kB / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.239e-06/0.2727, allocations: 0 / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2727, allocations: 0 / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.2727, allocations: 7.922 kB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001043/0.2728, allocations: 88.97 kB / 1.247 GB, free: 4.035 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.2729, allocations: 81.06 kB / 1.247 GB, free: 3.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.2729, allocations: 12.06 kB / 1.247 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.514e-05/0.2729, allocations: 0 / 1.247 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.528e-05/0.273, allocations: 7.922 kB / 1.247 GB, free: 3.918 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.273, allocations: 4 kB / 1.247 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.441e-05/0.2731, allocations: 107.3 kB / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2731, allocations: 0 / 1.247 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001964/0.2733, allocations: 16 kB / 1.247 GB, free: 3.793 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.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.0003967/0.2737, allocations: 0.6241 MB / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001965/0.2739, allocations: 123.3 kB / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2739, allocations: 0 / 1.248 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.956e-05/0.2739, allocations: 19.92 kB / 1.248 GB, free: 2.988 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.2741, allocations: 15.05 kB / 1.248 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.2756, allocations: 1.523 MB / 1.25 GB, free: 1.348 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.2759, allocations: 0.6885 MB / 1.25 GB, free: 0.6328 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.263e-05/0.2759, allocations: 7.859 kB / 1.25 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.2759, allocations: 27.42 kB / 1.25 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of SimCode: time 2.11e-07/0.2759, allocations: 0 / 1.25 GB, free: 0.6016 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6714/0.9474, allocations: 2.405 MB / 1.253 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/9.146, allocations: 6.141 kB / 1.253 GB, free: 14.26 MB / 0.9981 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=400 --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