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.001214/0.001214, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009992/0.0009992, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.265/1.265, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.181/2.181, allocations: 390.2 MB / 0.6643 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 68.14 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5041/0.5055, allocations: 140.4 MB / 0.9491 GB, free: 9.316 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002/0.5075, allocations: 1.479 MB / 0.9505 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004084/0.5079, allocations: 391.2 kB / 0.9509 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.771e-05/0.5079, allocations: 1.375 kB / 0.9509 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.802e-05/0.508, allocations: 0 / 0.9509 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.752e-05/0.508, allocations: 9.297 kB / 0.9509 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001152/0.5081, allocations: 13.36 kB / 0.9509 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.572e-05/0.5082, allocations: 21.55 kB / 0.9509 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.37e-05/0.5083, allocations: 2.75 kB / 0.9509 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.033e-05/0.5084, allocations: 17.38 kB / 0.9509 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.29e-05/0.5084, allocations: 8.109 kB / 0.9509 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.5084, allocations: 1.375 kB / 0.9509 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.198e-06/0.5084, allocations: 5.312 kB / 0.951 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.346e-05/0.5085, allocations: 11.92 kB / 0.951 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.215e-05/0.5085, allocations: 10.69 kB / 0.951 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.449e-05/0.5085, allocations: 25.41 kB / 0.951 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.5085, allocations: 0 / 0.951 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.91e-07/0.5086, allocations: 0 / 0.951 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.186e-06/0.5086, allocations: 0 / 0.951 GB, free: 7.766 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.0002721/0.5088, allocations: 336.7 kB / 0.9513 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.5089, allocations: 9.625 kB / 0.9513 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.051e-05/0.5089, allocations: 32.12 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.958e-05/0.5089, allocations: 6.219 kB / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.723e-05/0.509, allocations: 169.7 kB / 0.9515 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.509, allocations: 5.75 kB / 0.9515 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.509, allocations: 1.75 kB / 0.9515 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.5091, allocations: 44.69 kB / 0.9516 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.5091, allocations: 13.28 kB / 0.9516 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-06/0.5091, allocations: 0 / 0.9516 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-06/0.5092, allocations: 0 / 0.9516 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.974e-05/0.5092, allocations: 14.98 kB / 0.9516 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002177/0.5094, allocations: 254.5 kB / 0.9518 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.507e-05/0.5095, allocations: 30.81 kB / 0.9519 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.5096, allocations: 13.11 kB / 0.9519 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.5096, allocations: 1.375 kB / 0.9519 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.214e-05/0.5096, allocations: 34.5 kB / 0.9519 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.5096, allocations: 4 kB / 0.9519 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001883/0.5098, allocations: 66.17 kB / 0.952 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.783e-05/0.5098, allocations: 51.41 kB / 0.952 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.025e-05/0.5099, allocations: 105.9 kB / 0.9521 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.631e-06/0.5099, allocations: 25.7 kB / 0.9522 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.991e-05/0.5099, allocations: 85.3 kB / 0.9522 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.176e-05/0.5099, allocations: 5.375 kB / 0.9522 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.51, allocations: 20.52 kB / 0.9523 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.292e-05/0.51, allocations: 320.1 kB / 0.9526 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.597e-05/0.51, allocations: 4.188 kB / 0.9526 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.885e-05/0.5101, allocations: 13.7 kB / 0.9526 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.241e-05/0.5101, allocations: 25.72 kB / 0.9526 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.5101, allocations: 3.938 kB / 0.9526 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.472e-05/0.5102, allocations: 57.03 kB / 0.9527 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/0.5103, allocations: 5.625 kB / 0.9527 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-06/0.5103, allocations: 0 / 0.9527 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.5103, allocations: 4 kB / 0.9527 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.243e-05/0.5103, allocations: 9.203 kB / 0.9527 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.5104, allocations: 0 / 0.9527 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.013e-05/0.5104, allocations: 5.344 kB / 0.9527 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.5104, allocations: 1.094 kB / 0.9527 GB, free: 5.949 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.736e-05/0.5104, allocations: 112.1 kB / 0.9528 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.27e-05/0.5105, allocations: 13.41 kB / 0.9528 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.54e-05/0.5105, allocations: 7.531 kB / 0.9528 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.5105, allocations: 5.422 kB / 0.9528 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.5105, allocations: 0 / 0.9528 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-06/0.5105, allocations: 0 / 0.9528 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.632e-05/0.5106, allocations: 163.1 kB / 0.953 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5106, allocations: 0 / 0.953 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-05/0.5107, allocations: 5.188 kB / 0.953 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.5107, allocations: 3.984 kB / 0.953 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/0.5107, allocations: 0 / 0.953 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5107, allocations: 5.156 kB / 0.953 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5107, allocations: 0 / 0.953 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001145/0.5108, allocations: 144.1 kB / 0.9531 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.419e-05/0.5108, allocations: 77.8 kB / 0.9532 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.5108, allocations: 5.656 kB / 0.9532 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.915e-05/0.5109, allocations: 5.578 kB / 0.9532 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.5109, allocations: 5.219 kB / 0.9532 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-06/0.5109, allocations: 0 / 0.9532 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.048e-05/0.511, allocations: 88.42 kB / 0.9533 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.511, allocations: 0 / 0.9533 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002047/0.5112, allocations: 7.469 kB / 0.9533 GB, free: 5.262 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.0002302/0.5114, allocations: 0.68 MB / 0.954 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.691e-05/0.5115, allocations: 21.3 kB / 0.954 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.5115, allocations: 0 / 0.954 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.718e-05/0.5116, allocations: 19.7 kB / 0.954 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.5118, allocations: 6.594 kB / 0.954 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003201/0.5121, allocations: 154.2 kB / 0.9542 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.438e-05/0.5122, allocations: 0.6746 MB / 0.9548 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.173e-05/0.5122, allocations: 1.438 kB / 0.9548 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/0.5122, allocations: 15.42 kB / 0.9548 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.5122, allocations: 0 / 0.9548 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.008768/0.521, allocations: 1.045 MB / 0.9559 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001184/0.5212, allocations: 220.7 kB / 0.9561 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.526/2.047, allocations: 10.56 kB / 0.9561 GB, free: 2.922 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