Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",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.0009747/0.0009748, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005292/0.005292, allocations: 171.7 kB / 16.27 MB, free: 6.648 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.242/1.242, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.118/2.118, allocations: 390.9 MB / 0.6664 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002772, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5213/0.5216, allocations: 142.4 MB / 0.9552 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.001143/0.5228, allocations: 1.145 MB / 0.9563 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004204/0.5232, allocations: 394 kB / 0.9567 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.662e-05/0.5232, allocations: 0.8438 kB / 0.9567 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.5232, allocations: 0 / 0.9567 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.264e-05/0.5233, allocations: 8.75 kB / 0.9567 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001117/0.5234, allocations: 2.062 kB / 0.9567 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.921e-05/0.5235, allocations: 26.67 kB / 0.9567 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.164e-05/0.5235, allocations: 2.812 kB / 0.9567 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.083e-05/0.5236, allocations: 11.95 kB / 0.9567 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.385e-05/0.5237, allocations: 20.11 kB / 0.9567 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.5237, allocations: 1.094 kB / 0.9567 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.985e-06/0.5237, allocations: 3.938 kB / 0.9567 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.197e-05/0.5237, allocations: 1 kB / 0.9567 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.6e-05/0.5238, allocations: 44.72 kB / 0.9568 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.26e-05/0.5238, allocations: 16.5 kB / 0.9568 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.5238, allocations: 0 / 0.9568 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.403e-06/0.5238, allocations: 0 / 0.9568 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.5238, allocations: 0.9688 kB / 0.9568 GB, free: 6.414 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002535/0.5241, allocations: 333 kB / 0.9571 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.5241, allocations: 10.03 kB / 0.9571 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.216e-05/0.5242, allocations: 30.75 kB / 0.9572 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.963e-05/0.5242, allocations: 6 kB / 0.9572 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.866e-05/0.5243, allocations: 174.7 kB / 0.9573 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.126e-06/0.5243, allocations: 1.438 kB / 0.9573 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.5243, allocations: 5.531 kB / 0.9573 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.5244, allocations: 47.06 kB / 0.9574 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.46e-06/0.5244, allocations: 4 kB / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.5244, allocations: 1.125 kB / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.5244, allocations: 0 / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.253e-05/0.5245, allocations: 26.8 kB / 0.9574 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002138/0.5247, allocations: 250.8 kB / 0.9577 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.791e-05/0.5248, allocations: 32.45 kB / 0.9577 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.651e-05/0.5249, allocations: 22.88 kB / 0.9577 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.5249, allocations: 5.047 kB / 0.9577 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.5249, allocations: 32.09 kB / 0.9577 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.5249, allocations: 3.938 kB / 0.9577 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001987/0.5251, allocations: 70.41 kB / 0.9578 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.975e-05/0.5251, allocations: 56.48 kB / 0.9579 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.679e-05/0.5252, allocations: 105.1 kB / 0.958 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.182e-06/0.5252, allocations: 25.7 kB / 0.958 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.049e-05/0.5252, allocations: 86.59 kB / 0.9581 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.5252, allocations: 7.906 kB / 0.9581 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-05/0.5253, allocations: 14.84 kB / 0.9581 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.224e-05/0.5253, allocations: 315.9 kB / 0.9584 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.941e-05/0.5253, allocations: 15.23 kB / 0.9584 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.094e-05/0.5254, allocations: 8.562 kB / 0.9584 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.153e-05/0.5255, allocations: 35.78 kB / 0.9585 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.5255, allocations: 0 / 0.9585 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001014/0.5256, allocations: 53.53 kB / 0.9585 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.5256, allocations: 4.906 kB / 0.9585 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/0.5256, allocations: 0 / 0.9585 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.687e-06/0.5256, allocations: 3.938 kB / 0.9585 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.22e-05/0.5257, allocations: 9.516 kB / 0.9585 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.5257, allocations: 0 / 0.9585 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.119e-05/0.5257, allocations: 7.031 kB / 0.9585 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.5257, allocations: 1.25 kB / 0.9585 GB, free: 4.598 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 3.912e-05/0.5258, allocations: 114.8 kB / 0.9586 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.5258, allocations: 2.062 kB / 0.9586 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.567e-05/0.5258, allocations: 12.58 kB / 0.9587 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.5258, allocations: 0 / 0.9587 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.5258, allocations: 1.125 kB / 0.9587 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.5258, allocations: 0 / 0.9587 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.81e-05/0.5259, allocations: 162.9 kB / 0.9588 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.526, allocations: 4 kB / 0.9588 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.043e-05/0.526, allocations: 9.359 kB / 0.9588 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.526, allocations: 0 / 0.9588 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.15e-06/0.526, allocations: 1.188 kB / 0.9588 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.526, allocations: 0 / 0.9588 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.526, allocations: 1.062 kB / 0.9588 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.5262, allocations: 159.4 kB / 0.959 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.433e-05/0.5262, allocations: 82.5 kB / 0.9591 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.5262, allocations: 4.234 kB / 0.9591 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.938e-05/0.5263, allocations: 2.844 kB / 0.9591 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.143e-05/0.5263, allocations: 5.344 kB / 0.9591 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.5263, allocations: 1.344 kB / 0.9591 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.151e-05/0.5263, allocations: 87.23 kB / 0.9592 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5263, allocations: 0 / 0.9592 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002044/0.5265, allocations: 7.719 kB / 0.9592 GB, free: 3.906 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.00024/0.5268, allocations: 0.6877 MB / 0.9598 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001043/0.5269, allocations: 29.14 kB / 0.9599 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.5269, allocations: 0 / 0.9599 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.101e-05/0.5269, allocations: 13.91 kB / 0.9599 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.5271, allocations: 10.47 kB / 0.9599 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003045/0.5275, allocations: 164.3 kB / 0.96 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.281e-05/0.5275, allocations: 0.6807 MB / 0.9607 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.713e-05/0.5276, allocations: 1.875 kB / 0.9607 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.561e-05/0.5276, allocations: 7.438 kB / 0.9607 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.5276, allocations: 0 / 0.9607 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2559/0.7835, allocations: 0.9783 MB / 0.9617 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.7837, allocations: 216.8 kB / 0.9619 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/2.332, allocations: 0 / 0.9619 GB, free: 1.656 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches