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.001101/0.001101, 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.001027/0.001027, allocations: 194.5 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.261/1.261, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.621/2.621, allocations: 469.4 MB / 0.742 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.81 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2466, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002366/0.249, allocations: 1.427 MB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0005365/0.2495, allocations: 388.8 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.2e-05/0.2495, allocations: 0 / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.288e-05/0.2496, allocations: 4 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.266e-05/0.2496, allocations: 7.922 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001278/0.2498, allocations: 15.92 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.042e-05/0.2498, allocations: 27.92 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.441e-05/0.2499, allocations: 4 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.308e-05/0.25, allocations: 11.94 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.914e-05/0.2501, allocations: 15.91 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.2501, allocations: 0 / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.2501, allocations: 4 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.2501, allocations: 4 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.733e-05/0.2501, allocations: 11.92 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 6.664e-05/0.2502, allocations: 27.92 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2502, allocations: 0 / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2502, allocations: 0 / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.2502, allocations: 0 / 1.066 GB, free: 12.56 MB / 0.8262 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.0003487/0.2506, allocations: 339.7 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.2506, allocations: 8.031 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.2507, allocations: 30.75 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.24e-05/0.2507, allocations: 4.938 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.2508, allocations: 172.2 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.2508, allocations: 4.375 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.457e-06/0.2508, allocations: 8.312 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.251, allocations: 49.8 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.251, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-06/0.251, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.251, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.048e-05/0.2511, allocations: 19.98 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002798/0.2514, allocations: 248.9 kB / 1.066 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.892e-05/0.2515, allocations: 34.5 kB / 1.066 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.859e-05/0.2515, allocations: 16.92 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.2515, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.2516, allocations: 38.55 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.2516, allocations: 0 / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002085/0.2518, allocations: 61.62 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.2518, allocations: 55.41 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.432e-05/0.2519, allocations: 105.8 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.2519, allocations: 25.7 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.835e-05/0.252, allocations: 84.12 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.252, allocations: 11.78 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.252, allocations: 21.7 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.099e-05/0.2521, allocations: 318.9 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.247e-05/0.2522, allocations: 15.98 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.99e-05/0.2522, allocations: 4 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.106e-05/0.2523, allocations: 24.84 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2523, allocations: 0 / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001097/0.2524, allocations: 57.62 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.2524, allocations: 8 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.2524, allocations: 0 / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.2524, allocations: 0 / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.867e-05/0.2525, allocations: 7.984 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.2525, allocations: 0 / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.027e-05/0.2526, allocations: 4 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.2526, allocations: 3.984 kB / 1.067 GB, free: 10.58 MB / 0.8262 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.987e-05/0.2526, allocations: 118.3 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.2527, allocations: 4 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.2527, allocations: 7.516 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.2527, allocations: 0 / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2527, allocations: 0 / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2527, allocations: 7.984 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.2528, allocations: 157.6 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2529, allocations: 256 / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.424e-05/0.2529, allocations: 7.984 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.2529, allocations: 4 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.2529, allocations: 3.938 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.2529, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2529, allocations: 4 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.2531, allocations: 155.4 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.175e-05/0.2531, allocations: 85 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.2531, allocations: 0 / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.082e-05/0.2532, allocations: 0 / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.498e-05/0.2532, allocations: 4 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.2533, allocations: 4.031 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.667e-05/0.2533, allocations: 87.27 kB / 1.068 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.212e-06/0.2533, allocations: 0 / 1.068 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002111/0.2535, allocations: 7.938 kB / 1.068 GB, free: 9.84 MB / 0.8262 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.0003723/0.2539, allocations: 0.6908 MB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001152/0.254, allocations: 19.98 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.254, allocations: 0 / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.2541, allocations: 8 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.2543, allocations: 4 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000369/0.2547, allocations: 144.5 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.2549, allocations: 0.6768 MB / 1.069 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.147e-05/0.2549, allocations: 3.906 kB / 1.069 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.287e-05/0.2549, allocations: 15.44 kB / 1.069 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2549, allocations: 0 / 1.069 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01634/0.2713, allocations: 1.18 MB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.969/7.24, allocations: 15.86 kB / 1.071 GB, free: 7.117 MB / 0.8262 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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) "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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv. Warning: Get data of variable kMinU.u from file Buildings_latest_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