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.001288/0.001288, 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.001283/0.001283, allocations: 193.9 kB / 16.53 MB, free: 6.66 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.266/1.266, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.188/2.188, allocations: 390.2 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 67.89 kB / 0.8127 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.509/0.5103, allocations: 140.4 MB / 0.9497 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002091/0.5124, allocations: 1.399 MB / 0.9511 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004218/0.5129, allocations: 405.7 kB / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.882e-05/0.5129, allocations: 3.938 kB / 0.9515 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.002e-05/0.5129, allocations: 1.375 kB / 0.9515 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.967e-05/0.513, allocations: 3.938 kB / 0.9515 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001304/0.5131, allocations: 10.67 kB / 0.9515 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.527e-05/0.5132, allocations: 21.56 kB / 0.9515 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.977e-05/0.5133, allocations: 10.73 kB / 0.9515 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.7e-05/0.5133, allocations: 17.48 kB / 0.9516 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.316e-05/0.5134, allocations: 15.8 kB / 0.9516 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.5134, allocations: 1.25 kB / 0.9516 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.237e-06/0.5134, allocations: 2.531 kB / 0.9516 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.5134, allocations: 3.938 kB / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.325e-05/0.5135, allocations: 10.91 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.868e-05/0.5135, allocations: 20.34 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.5135, allocations: 1.25 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.92e-07/0.5135, allocations: 0 / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.5135, allocations: 0 / 0.9516 GB, free: 7.586 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.0002761/0.5138, allocations: 337.2 kB / 0.9519 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.5139, allocations: 9.469 kB / 0.9519 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.265e-05/0.5139, allocations: 44.06 kB / 0.952 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.966e-05/0.5139, allocations: 6.125 kB / 0.952 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.215e-05/0.514, allocations: 174.8 kB / 0.9522 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.773e-06/0.514, allocations: 4.375 kB / 0.9522 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.514, allocations: 5.688 kB / 0.9522 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.938e-05/0.5141, allocations: 41.5 kB / 0.9522 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.5141, allocations: 4 kB / 0.9522 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.5141, allocations: 4 kB / 0.9522 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.5141, allocations: 0.875 kB / 0.9522 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.067e-05/0.5142, allocations: 14.89 kB / 0.9522 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002153/0.5144, allocations: 254.3 kB / 0.9525 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.405e-05/0.5145, allocations: 27.23 kB / 0.9525 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.614e-05/0.5146, allocations: 25.31 kB / 0.9525 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.5146, allocations: 0 / 0.9525 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.019e-05/0.5146, allocations: 32.09 kB / 0.9525 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.5146, allocations: 0 / 0.9525 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001875/0.5148, allocations: 65.64 kB / 0.9526 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.81e-05/0.5148, allocations: 59.47 kB / 0.9527 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.625e-05/0.5149, allocations: 105.5 kB / 0.9528 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.601e-06/0.5149, allocations: 25.7 kB / 0.9528 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.17e-05/0.5149, allocations: 87.11 kB / 0.9529 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.224e-05/0.5149, allocations: 3.906 kB / 0.9529 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.5149, allocations: 12.19 kB / 0.9529 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.377e-05/0.515, allocations: 320 kB / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.623e-05/0.515, allocations: 9.719 kB / 0.9532 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.86e-05/0.5151, allocations: 12.45 kB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.336e-05/0.5151, allocations: 24.69 kB / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.5151, allocations: 0 / 0.9532 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.333e-05/0.5152, allocations: 53.56 kB / 0.9533 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.5153, allocations: 6.844 kB / 0.9533 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.5153, allocations: 0 / 0.9533 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.5153, allocations: 1.125 kB / 0.9533 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.244e-05/0.5153, allocations: 7.969 kB / 0.9533 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.5154, allocations: 3.984 kB / 0.9533 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.088e-05/0.5154, allocations: 11.48 kB / 0.9533 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.5154, allocations: 0 / 0.9533 GB, free: 5.758 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.645e-05/0.5154, allocations: 119.8 kB / 0.9534 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.5155, allocations: 5.281 kB / 0.9534 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.458e-05/0.5155, allocations: 3.531 kB / 0.9534 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.5155, allocations: 1.344 kB / 0.9534 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.5155, allocations: 0 / 0.9534 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.5155, allocations: 4 kB / 0.9534 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.5156, allocations: 166.7 kB / 0.9536 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.5156, allocations: 1.719 kB / 0.9536 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.929e-05/0.5157, allocations: 4.125 kB / 0.9536 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.5157, allocations: 0 / 0.9536 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.5157, allocations: 256 / 0.9536 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5157, allocations: 1.156 kB / 0.9536 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5157, allocations: 7.984 kB / 0.9536 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.5158, allocations: 152.5 kB / 0.9538 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.386e-05/0.5158, allocations: 77.11 kB / 0.9538 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.054e-05/0.5158, allocations: 1.219 kB / 0.9538 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.756e-05/0.5159, allocations: 6.078 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.418e-05/0.5159, allocations: 5.875 kB / 0.9539 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.5159, allocations: 0 / 0.9539 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.038e-05/0.516, allocations: 79.44 kB / 0.9539 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.516, allocations: 1.281 kB / 0.9539 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002043/0.5162, allocations: 6.875 kB / 0.9539 GB, free: 5.074 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.0002384/0.5164, allocations: 0.691 MB / 0.9546 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000105/0.5165, allocations: 25.67 kB / 0.9546 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.5165, allocations: 4.094 kB / 0.9546 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.814e-05/0.5166, allocations: 15.92 kB / 0.9547 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.5168, allocations: 6.25 kB / 0.9547 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003218/0.5171, allocations: 134.3 kB / 0.9548 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.864e-05/0.5172, allocations: 0.6855 MB / 0.9555 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.085e-05/0.5172, allocations: 5.156 kB / 0.9555 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.882e-05/0.5173, allocations: 16.2 kB / 0.9555 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5173, allocations: 0 / 0.9555 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.5319, allocations: 1.167 MB / 0.9566 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.684/7.216, allocations: 13.75 kB / 0.9566 GB, free: 2.852 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 & 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