Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_latest_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.00149/0.00149, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.556/2.556, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 64.22 kB / 0.8992 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2222, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.00208/0.2243, allocations: 1.434 MB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000468/0.2248, allocations: 399 kB / 1.055 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.709e-05/0.2248, allocations: 0 / 1.055 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.28e-05/0.2248, allocations: 7.938 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.273e-05/0.2249, allocations: 3.938 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001103/0.225, allocations: 11.97 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.518e-05/0.225, allocations: 27.92 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.477e-05/0.2251, allocations: 4 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.389e-05/0.2252, allocations: 15.92 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.041e-05/0.2252, allocations: 7.938 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.2253, allocations: 4 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.668e-06/0.2253, allocations: 7.938 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.2253, allocations: 4 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.607e-05/0.2253, allocations: 19.91 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.077e-05/0.2254, allocations: 19.92 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2254, allocations: 0 / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2254, allocations: 0 / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.2254, allocations: 0 / 1.055 GB, free: 6.281 MB / 0.8106 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.0003057/0.2257, allocations: 335.7 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.962e-05/0.2258, allocations: 12.62 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.515e-05/0.2258, allocations: 30.75 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.888e-05/0.2258, allocations: 4.938 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.17e-05/0.2259, allocations: 164.3 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.397e-06/0.2259, allocations: 4.359 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-06/0.2259, allocations: 4.375 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.226, allocations: 45.81 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.226, allocations: 0 / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.342e-06/0.2261, allocations: 3.938 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.2261, allocations: 0 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.578e-05/0.2261, allocations: 27.92 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002461/0.2264, allocations: 244.9 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.689e-05/0.2265, allocations: 30.56 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.482e-05/0.2265, allocations: 20.91 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.138e-05/0.2265, allocations: 4 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.2266, allocations: 34.56 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.81e-07/0.2266, allocations: 3.938 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001827/0.2268, allocations: 53.69 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.2268, allocations: 55.41 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.878e-05/0.2269, allocations: 105.8 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.2269, allocations: 25.83 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.067e-05/0.2269, allocations: 88.08 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.2269, allocations: 11.83 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.227, allocations: 17.72 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.361e-05/0.227, allocations: 314.8 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.895e-05/0.2271, allocations: 15.98 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.697e-05/0.2271, allocations: 4 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.744e-05/0.2272, allocations: 32.84 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.2272, allocations: 0 / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.799e-05/0.2273, allocations: 49.94 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.2273, allocations: 4 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-06/0.2273, allocations: 0 / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.2273, allocations: 4 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.03e-05/0.2274, allocations: 7.984 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.2274, allocations: 0 / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.2274, allocations: 11.94 kB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.2275, allocations: 3.984 kB / 1.057 GB, free: 4.309 MB / 0.8106 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 5.345e-05/0.2275, allocations: 117.8 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.2275, allocations: 3.984 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.47e-05/0.2276, allocations: 3.531 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2276, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2276, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2276, allocations: 4 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.2277, allocations: 161.5 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.2277, allocations: 0 / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.925e-05/0.2278, allocations: 11.98 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.2278, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-06/0.2278, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2278, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2278, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.2279, allocations: 155.4 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.681e-05/0.2279, allocations: 85 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.034e-05/0.228, allocations: 4.031 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.577e-05/0.228, allocations: 4 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.067e-05/0.228, allocations: 0 / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.2281, allocations: 0 / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.446e-05/0.2281, allocations: 87.27 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2281, allocations: 3.938 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001944/0.2283, allocations: 4 kB / 1.057 GB, free: 3.582 MB / 0.8106 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.0003185/0.2286, allocations: 0.6889 MB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001016/0.2287, allocations: 19.98 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.2287, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.754e-05/0.2288, allocations: 11.94 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.229, allocations: 12.14 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003182/0.2293, allocations: 140.4 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001629/0.2295, allocations: 0.6768 MB / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.804e-05/0.2295, allocations: 0 / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.2295, allocations: 15.44 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.2295, allocations: 0 / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7223/0.9518, allocations: 1.188 MB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.446/10.4, allocations: 7.562 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches