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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007139/0.007139, allocations: 99.41 kB / 15.73 MB, free: 5.551 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.001836/0.001836, allocations: 196.8 kB / 16.68 MB, free: 5.48 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.908/2.908, allocations: 482.4 MB / 0.7548 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.89 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2844, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.00252/0.2869, allocations: 1.435 MB / 1.243 GB, free: 8.754 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006236/0.2876, allocations: 391.1 kB / 1.243 GB, free: 8.367 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.854e-05/0.2876, allocations: 0 / 1.243 GB, free: 8.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.551e-05/0.2877, allocations: 3.938 kB / 1.243 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.957e-05/0.2877, allocations: 7.938 kB / 1.243 GB, free: 8.355 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001283/0.2878, allocations: 7.984 kB / 1.243 GB, free: 8.348 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.545e-05/0.2879, allocations: 19.94 kB / 1.243 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.373e-05/0.288, allocations: 11.98 kB / 1.243 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.385e-05/0.2881, allocations: 11.92 kB / 1.243 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.285e-05/0.2881, allocations: 15.92 kB / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.2882, allocations: 0 / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.009e-05/0.2882, allocations: 4 kB / 1.243 GB, free: 8.285 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.354e-05/0.2882, allocations: 4 kB / 1.243 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.2882, allocations: 11.94 kB / 1.243 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 7.425e-05/0.2883, allocations: 23.84 kB / 1.243 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2883, allocations: 0 / 1.243 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2883, allocations: 0 / 1.243 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.2883, allocations: 0 / 1.243 GB, free: 8.246 MB / 0.9981 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.0003984/0.2887, allocations: 343.3 kB / 1.244 GB, free: 7.863 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.2888, allocations: 8.031 kB / 1.244 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.901e-05/0.2888, allocations: 34.75 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.95e-05/0.2888, allocations: 0.9375 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.289, allocations: 172.4 kB / 1.244 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.289, allocations: 4.375 kB / 1.244 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-06/0.289, allocations: 384 / 1.244 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.2891, allocations: 49.8 kB / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2891, allocations: 0 / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/0.2891, allocations: 0 / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.2892, allocations: 0 / 1.244 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.811e-05/0.2892, allocations: 23.92 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003177/0.2896, allocations: 252.9 kB / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.398e-05/0.2897, allocations: 30.56 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.099e-05/0.2897, allocations: 12.92 kB / 1.244 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.2897, allocations: 4 kB / 1.244 GB, free: 7.168 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.2898, allocations: 34.56 kB / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.031e-06/0.2898, allocations: 4 kB / 1.244 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002347/0.29, allocations: 61.61 kB / 1.244 GB, free: 7.055 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.2901, allocations: 51.41 kB / 1.244 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.262e-05/0.2902, allocations: 109.8 kB / 1.244 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.2902, allocations: 29.64 kB / 1.245 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.6e-05/0.2902, allocations: 84.14 kB / 1.245 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/0.2903, allocations: 7.891 kB / 1.245 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.2903, allocations: 21.83 kB / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.2904, allocations: 318.8 kB / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.343e-05/0.2905, allocations: 8 kB / 1.245 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.533e-05/0.2905, allocations: 7.984 kB / 1.245 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.293e-05/0.2906, allocations: 32.78 kB / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2906, allocations: 0 / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001202/0.2908, allocations: 53.75 kB / 1.245 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.2908, allocations: 4 kB / 1.245 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.2908, allocations: 0 / 1.245 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.2908, allocations: 0 / 1.245 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.955e-05/0.2909, allocations: 11.98 kB / 1.245 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2909, allocations: 3.984 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.413e-05/0.2909, allocations: 3.953 kB / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-06/0.2909, allocations: 0 / 1.245 GB, free: 6.266 MB / 0.9981 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 7.959e-05/0.291, allocations: 117.8 kB / 1.245 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.291, allocations: 0 / 1.245 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.322e-05/0.2911, allocations: 7.531 kB / 1.245 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2911, allocations: 8.234 kB / 1.245 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.2911, allocations: 0 / 1.245 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.2911, allocations: 4 kB / 1.245 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.2913, allocations: 157.6 kB / 1.245 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2913, allocations: 0 / 1.245 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.863e-05/0.2913, allocations: 11.92 kB / 1.245 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2913, allocations: 0 / 1.245 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.2914, allocations: 0 / 1.245 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2914, allocations: 8 kB / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2914, allocations: 0 / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.2915, allocations: 147.5 kB / 1.245 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.2916, allocations: 85.05 kB / 1.246 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.2916, allocations: 3.984 kB / 1.246 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.385e-05/0.2917, allocations: 4 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.518e-05/0.2917, allocations: 4.031 kB / 1.246 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-06/0.2917, allocations: 3.938 kB / 1.246 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.456e-05/0.2918, allocations: 83.27 kB / 1.246 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2918, allocations: 0 / 1.246 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002201/0.292, allocations: 8 kB / 1.246 GB, free: 5.527 MB / 0.9981 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.0004686/0.2925, allocations: 0.6851 MB / 1.246 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001218/0.2926, allocations: 31.91 kB / 1.246 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2926, allocations: 0 / 1.246 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.161e-05/0.2927, allocations: 15.94 kB / 1.246 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.2929, allocations: 2.812 kB / 1.246 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003985/0.2933, allocations: 158 kB / 1.247 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.2936, allocations: 0.6729 MB / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.14e-05/0.2936, allocations: 0 / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.2937, allocations: 11.42 kB / 1.247 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of SimCode: time 2.51e-07/0.2937, allocations: 0 / 1.247 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.3146, allocations: 1.206 MB / 1.248 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/7.919, allocations: 6.188 kB / 1.248 GB, free: 2.789 MB / 0.9981 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 400 --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