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.007018/0.007018, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001664/0.001664, allocations: 188.9 kB / 16.67 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.23/2.23, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 61.66 kB / 0.9504 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2177, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002298/0.22, allocations: 1.427 MB / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0005797/0.2206, allocations: 396.5 kB / 1.089 GB, free: 168 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.574e-05/0.2207, allocations: 4 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.267e-05/0.2207, allocations: 3.938 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.864e-05/0.2208, allocations: 0 / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001262/0.2209, allocations: 11.92 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.766e-05/0.221, allocations: 19.94 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.13e-05/0.2211, allocations: 11.98 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.746e-05/0.2211, allocations: 19.92 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.732e-05/0.2212, allocations: 11.92 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.2212, allocations: 0 / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.692e-05/0.2212, allocations: 4 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.418e-05/0.2213, allocations: 4 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.321e-05/0.2213, allocations: 3.938 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 6.809e-05/0.2214, allocations: 27.89 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2214, allocations: 4 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2214, allocations: 0 / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2214, allocations: 0 / 1.089 GB, free: 40 kB / 0.8419 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.0003546/0.2217, allocations: 338.3 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2218, allocations: 8.031 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.214e-05/0.2218, allocations: 38.69 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.135e-05/0.2218, allocations: 4.938 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.2219, allocations: 164.9 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.824e-06/0.222, allocations: 4.375 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.222, allocations: 384 / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.2221, allocations: 45.81 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.2221, allocations: 3.984 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.2221, allocations: 4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2221, allocations: 7.922 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.955e-05/0.2222, allocations: 19.98 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002803/0.2225, allocations: 253.1 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.326e-05/0.2226, allocations: 30.56 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.282e-05/0.2227, allocations: 20.92 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.007e-05/0.2227, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.2227, allocations: 34.56 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 2.144e-06/0.2227, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002242/0.2229, allocations: 65.55 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.223, allocations: 51.41 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.621e-05/0.223, allocations: 110 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.2231, allocations: 25.7 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.545e-05/0.2231, allocations: 84.14 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/0.2231, allocations: 3.906 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.238e-05/0.2232, allocations: 21.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.566e-05/0.2232, allocations: 314.8 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.104e-05/0.2233, allocations: 8 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.931e-05/0.2233, allocations: 11.98 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.486e-05/0.2234, allocations: 28.91 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.2234, allocations: 256 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001113/0.2235, allocations: 57.53 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.2236, allocations: 4 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2236, allocations: 4 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2236, allocations: 0 / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.998e-05/0.2237, allocations: 7.984 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.2237, allocations: 8.031 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.08e-05/0.2237, allocations: 0 / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.2237, allocations: 0 / 1.091 GB, free: 14.06 MB / 0.8575 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 6.693e-05/0.2238, allocations: 113.8 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.2238, allocations: 0 / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.89e-05/0.2238, allocations: 7.531 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.2239, allocations: 3.984 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2239, allocations: 4 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.2239, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001376/0.224, allocations: 161.6 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.224, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.738e-05/0.2241, allocations: 4 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.2241, allocations: 3.984 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/0.2241, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2241, allocations: 0 / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2241, allocations: 7.938 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.2243, allocations: 151.5 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.2243, allocations: 84.95 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.2243, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.105e-05/0.2244, allocations: 11.92 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.467e-05/0.2244, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.2244, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.744e-05/0.2245, allocations: 87.27 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2245, allocations: 0 / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002116/0.2247, allocations: 4 kB / 1.092 GB, free: 13.33 MB / 0.8575 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.0003703/0.2251, allocations: 0.6851 MB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001152/0.2252, allocations: 19.98 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2252, allocations: 0 / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.307e-05/0.2252, allocations: 16.08 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.2254, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003777/0.2258, allocations: 152.3 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002011/0.226, allocations: 0.6768 MB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.258e-05/0.2261, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.2261, allocations: 15.42 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.2261, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01511/0.2412, allocations: 1.206 MB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.875/7.116, allocations: 17.38 kB / 1.094 GB, free: 10.6 MB / 0.8575 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 Error: Could not read variable kMinU.u in file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv. Warning: Get data of variable kMinU.u from file Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv failed! " Variables in the reference:time,kMinU.u,kMinU.y Variables in the result:time,kMinU.y,pulse.y,kMinU.k,pulse.amplitude,pulse.f