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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001079/0.001084, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001064/0.001064, allocations: 192.9 kB / 16.25 MB, free: 6.641 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: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.147/2.147, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.001211, allocations: 59.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4916/0.4928, allocations: 140.4 MB / 0.9493 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002071/0.4949, allocations: 1.479 MB / 0.9507 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004227/0.4953, allocations: 388.2 kB / 0.9511 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.616e-05/0.4954, allocations: 7.938 kB / 0.9511 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.4954, allocations: 5.438 kB / 0.9511 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.58e-05/0.4955, allocations: 0 / 0.9511 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001164/0.4956, allocations: 5.312 kB / 0.9511 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.939e-05/0.4956, allocations: 22.98 kB / 0.9511 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.693e-05/0.4957, allocations: 6.375 kB / 0.9511 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.965e-05/0.4958, allocations: 17.78 kB / 0.9511 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.952e-05/0.4958, allocations: 11.44 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.4959, allocations: 1.469 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.814e-06/0.4959, allocations: 5.406 kB / 0.9511 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.163e-05/0.4959, allocations: 9.297 kB / 0.9512 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.4959, allocations: 10.59 kB / 0.9512 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.291e-05/0.496, allocations: 24.39 kB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.496, allocations: 1.219 kB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.496, allocations: 0 / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.496, allocations: 0 / 0.9512 GB, free: 7.582 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.000265/0.4963, allocations: 333.2 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.4963, allocations: 9.156 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.025e-05/0.4963, allocations: 40 kB / 0.9516 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.03e-05/0.4963, allocations: 6.125 kB / 0.9516 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.56e-05/0.4964, allocations: 178.8 kB / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.196e-06/0.4964, allocations: 384 / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.384e-06/0.4964, allocations: 1.656 kB / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.808e-05/0.4965, allocations: 49.16 kB / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.4965, allocations: 1.375 kB / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.4966, allocations: 0 / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.4966, allocations: 0 / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.221e-05/0.4966, allocations: 18.64 kB / 0.9518 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002053/0.4968, allocations: 251 kB / 0.952 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.273e-05/0.4969, allocations: 31.52 kB / 0.9521 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.302e-05/0.497, allocations: 20.59 kB / 0.9521 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.497, allocations: 3.984 kB / 0.9521 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.126e-05/0.497, allocations: 35.88 kB / 0.9521 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.497, allocations: 0 / 0.9521 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001847/0.4972, allocations: 66.27 kB / 0.9522 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.714e-05/0.4972, allocations: 51.41 kB / 0.9522 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.442e-05/0.4973, allocations: 105.4 kB / 0.9523 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.992e-06/0.4973, allocations: 25.7 kB / 0.9524 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.064e-05/0.4973, allocations: 93.84 kB / 0.9525 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.4973, allocations: 5.469 kB / 0.9525 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-05/0.4974, allocations: 11.19 kB / 0.9525 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.177e-05/0.4974, allocations: 320.3 kB / 0.9528 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.748e-05/0.4974, allocations: 13.02 kB / 0.9528 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.772e-05/0.4975, allocations: 5.562 kB / 0.9528 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.073e-05/0.4975, allocations: 24.91 kB / 0.9528 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4975, allocations: 4 kB / 0.9528 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.059e-05/0.4976, allocations: 53.94 kB / 0.9529 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.4976, allocations: 8.578 kB / 0.9529 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.4977, allocations: 3.984 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.4977, allocations: 1.531 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.184e-05/0.4977, allocations: 4.25 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.4977, allocations: 0 / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.85e-05/0.4978, allocations: 1.344 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.4978, allocations: 5.406 kB / 0.9529 GB, free: 5.762 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.553e-05/0.4978, allocations: 123 kB / 0.953 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.4979, allocations: 6.594 kB / 0.953 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.558e-05/0.4979, allocations: 7.531 kB / 0.953 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.4979, allocations: 1.625 kB / 0.953 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.4979, allocations: 0 / 0.953 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.4979, allocations: 0 / 0.953 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.352e-05/0.498, allocations: 158.3 kB / 0.9532 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.498, allocations: 5.797 kB / 0.9532 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.873e-05/0.498, allocations: 11.44 kB / 0.9532 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.4981, allocations: 0 / 0.9532 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.4981, allocations: 1.625 kB / 0.9532 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.4981, allocations: 0 / 0.9532 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4981, allocations: 0 / 0.9532 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001051/0.4982, allocations: 148 kB / 0.9533 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.32e-05/0.4982, allocations: 78.42 kB / 0.9534 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.4982, allocations: 4.031 kB / 0.9534 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.706e-05/0.4983, allocations: 6.719 kB / 0.9534 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.998e-05/0.4983, allocations: 5.25 kB / 0.9534 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.4983, allocations: 256 / 0.9534 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.079e-05/0.4983, allocations: 88.05 kB / 0.9535 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4983, allocations: 0 / 0.9535 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002016/0.4985, allocations: 7.562 kB / 0.9535 GB, free: 5.07 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.000228/0.4988, allocations: 0.685 MB / 0.9542 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001068/0.4989, allocations: 24.23 kB / 0.9542 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.4989, allocations: 0 / 0.9542 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.713e-05/0.4989, allocations: 15.33 kB / 0.9542 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001908/0.4991, allocations: 6.281 kB / 0.9542 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003137/0.4995, allocations: 146.3 kB / 0.9544 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.236e-05/0.4995, allocations: 0.6821 MB / 0.955 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.031e-05/0.4996, allocations: 1.375 kB / 0.955 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.636e-05/0.4996, allocations: 11.44 kB / 0.955 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.4996, allocations: 1.406 kB / 0.9551 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.532/1.032, allocations: 1.079 MB / 0.9561 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/1.032, allocations: 221.8 kB / 0.9563 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.685, allocations: 2.75 kB / 0.9563 GB, free: 2.734 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