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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.007054/0.007054, allocations: 98.56 kB / 15.73 MB, free: 6.008 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.001649/0.001649, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.665/2.665, allocations: 469.4 MB / 0.7422 GB, free: 7.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 64.12 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2676, allocations: 159.1 MB / 1.22 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002539/0.2702, allocations: 1.436 MB / 1.221 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000631/0.2708, allocations: 395.1 kB / 1.222 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.431e-05/0.2709, allocations: 0 / 1.222 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.536e-05/0.2709, allocations: 0 / 1.222 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.77e-05/0.271, allocations: 7.922 kB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.2711, allocations: 11.98 kB / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.318e-05/0.2712, allocations: 19.92 kB / 1.222 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.704e-05/0.2713, allocations: 8 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.094e-05/0.2714, allocations: 19.86 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.333e-05/0.2714, allocations: 15.92 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.2715, allocations: 4 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.552e-06/0.2715, allocations: 0 / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.498e-05/0.2715, allocations: 3.984 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.029e-05/0.2715, allocations: 11.94 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 7.637e-05/0.2716, allocations: 19.91 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.2716, allocations: 0 / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.502e-06/0.2716, allocations: 4 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2716, allocations: 0 / 1.222 GB, free: 12.73 MB / 0.9825 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.0003733/0.272, allocations: 339.4 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2721, allocations: 12.03 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.2721, allocations: 30.75 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.2721, allocations: 4.922 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.2722, allocations: 172.3 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.2723, allocations: 384 / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.2723, allocations: 4.312 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.2724, allocations: 45.81 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2724, allocations: 0 / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.2724, allocations: 4 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2724, allocations: 7.938 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.165e-05/0.2725, allocations: 11.98 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002957/0.2728, allocations: 256.9 kB / 1.222 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.736e-05/0.2729, allocations: 30.52 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.437e-05/0.273, allocations: 24.91 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.273, allocations: 0 / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.273, allocations: 34.56 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.273, allocations: 0 / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0002261/0.2733, allocations: 57.67 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.2733, allocations: 51.41 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.371e-05/0.2734, allocations: 109.8 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.2734, allocations: 29.83 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.058e-05/0.2735, allocations: 88.14 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2735, allocations: 7.891 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.878e-05/0.2735, allocations: 13.66 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.257e-05/0.2736, allocations: 322.8 kB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.983e-05/0.2737, allocations: 7.984 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.233e-05/0.2737, allocations: 4 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.972e-05/0.2738, allocations: 32.91 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2738, allocations: 0 / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001158/0.2739, allocations: 57.62 kB / 1.223 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2739, allocations: 8 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.274, allocations: 0 / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.274, allocations: 3.938 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.234e-05/0.2741, allocations: 4 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.2741, allocations: 0 / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.589e-05/0.2741, allocations: 12.02 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.2741, allocations: 0 / 1.223 GB, free: 10.74 MB / 0.9825 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.581e-05/0.2742, allocations: 109.8 kB / 1.223 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.2742, allocations: 4 kB / 1.223 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.045e-05/0.2742, allocations: 7.531 kB / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2743, allocations: 0 / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2743, allocations: 0 / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2743, allocations: 0 / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.2744, allocations: 165.6 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2744, allocations: 8 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.641e-05/0.2745, allocations: 4 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2745, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.2745, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2745, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2745, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001494/0.2747, allocations: 151.4 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.2747, allocations: 93.03 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.2747, allocations: 4.25 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.525e-05/0.2748, allocations: 4 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.432e-05/0.2748, allocations: 7.969 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.2748, allocations: 4 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.36e-05/0.2749, allocations: 79.28 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.2749, allocations: 0 / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002252/0.2751, allocations: 8 kB / 1.224 GB, free: 10.01 MB / 0.9825 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.0003826/0.2755, allocations: 0.685 MB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001266/0.2756, allocations: 31.92 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2757, allocations: 0 / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.693e-05/0.2757, allocations: 20.08 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.2759, allocations: 0 / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003934/0.2763, allocations: 144.1 kB / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.2765, allocations: 0.6768 MB / 1.225 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.761e-05/0.2766, allocations: 4 kB / 1.225 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.422e-05/0.2766, allocations: 7.438 kB / 1.225 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of SimCode: time 3.71e-07/0.2766, allocations: 3.938 kB / 1.225 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01593/0.2926, allocations: 1.207 MB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.583/7.876, allocations: 17.73 kB / 1.227 GB, free: 7.262 MB / 0.9825 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