Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,fileNamePrefix="Buildings_11_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.00779/0.00779, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001304/0.001304, allocations: 202.6 kB / 16.68 MB, free: 5.969 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.804/2.804, allocations: 469.8 MB / 0.7425 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.89 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2807, allocations: 159.1 MB / 1.22 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002474/0.2832, allocations: 1.437 MB / 1.222 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0006115/0.2838, allocations: 387.1 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.941e-05/0.2839, allocations: 0 / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.344e-05/0.2839, allocations: 4 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.542e-05/0.284, allocations: 7.938 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000127/0.2841, allocations: 7.984 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.683e-05/0.2842, allocations: 27.92 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.841e-05/0.2843, allocations: 3.984 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.864e-05/0.2843, allocations: 19.88 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.164e-05/0.2844, allocations: 11.92 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.2844, allocations: 0 / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.2844, allocations: 4 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.2845, allocations: 8 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.2845, allocations: 7.938 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 7.368e-05/0.2846, allocations: 27.89 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2846, allocations: 0 / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2846, allocations: 0 / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.2846, allocations: 0 / 1.222 GB, free: 12.35 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.0004059/0.285, allocations: 343.3 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.285, allocations: 8.031 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.383e-05/0.2851, allocations: 30.75 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.959e-05/0.2851, allocations: 8.938 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.2853, allocations: 164.3 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.2853, allocations: 384 / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.2853, allocations: 4.375 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.2854, allocations: 49.75 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.2854, allocations: 0 / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.513e-06/0.2855, allocations: 0 / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.2855, allocations: 0 / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.646e-05/0.2855, allocations: 27.95 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003132/0.2859, allocations: 248.9 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.445e-05/0.286, allocations: 34.5 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.517e-05/0.286, allocations: 16.92 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.286, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.2861, allocations: 34.56 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.2861, allocations: 4 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0002185/0.2863, allocations: 57.67 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.2864, allocations: 51.41 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.019e-05/0.2865, allocations: 109.8 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.2865, allocations: 29.7 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.862e-05/0.2865, allocations: 84.08 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.2866, allocations: 11.83 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.2866, allocations: 21.84 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.2868, allocations: 318.8 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.082e-05/0.2868, allocations: 4 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.816e-05/0.2868, allocations: 15.98 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.134e-05/0.2869, allocations: 24.84 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2869, allocations: 0 / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001203/0.2871, allocations: 57.7 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.2871, allocations: 6.031 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.2871, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.2871, allocations: 0 / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.067e-05/0.2872, allocations: 11.92 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.2872, allocations: 3.984 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.313e-05/0.2872, allocations: 4 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-06/0.2872, allocations: 0 / 1.224 GB, free: 10.37 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 9.025e-05/0.2873, allocations: 121.8 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.2874, allocations: 0 / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.821e-05/0.2874, allocations: 3.531 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2874, allocations: 256 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2874, allocations: 0 / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.2874, allocations: 11.98 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/0.2876, allocations: 157.6 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2876, allocations: 0 / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.241e-05/0.2877, allocations: 4 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2877, allocations: 0 / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.2877, allocations: 3.984 kB / 1.224 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.2877, allocations: 4 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2877, allocations: 0 / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.2879, allocations: 155.4 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.172e-05/0.2879, allocations: 81.06 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.2879, allocations: 0 / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.335e-05/0.288, allocations: 3.984 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.275e-05/0.288, allocations: 8.031 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-06/0.288, allocations: 0 / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.598e-05/0.2881, allocations: 83.28 kB / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.073e-06/0.2881, allocations: 0 / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002168/0.2883, allocations: 7.938 kB / 1.224 GB, free: 9.637 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.0004861/0.2888, allocations: 0.6895 MB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001198/0.2889, allocations: 23.92 kB / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.289, allocations: 0 / 1.225 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.486e-05/0.289, allocations: 11.98 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.2892, allocations: 4 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.2896, allocations: 152.2 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.2899, allocations: 0.6807 MB / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.148e-05/0.29, allocations: 0 / 1.226 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.29, allocations: 11.42 kB / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.29, allocations: 0 / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02028/0.3103, allocations: 1.227 MB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.402/7.712, allocations: 4.062 kB / 1.227 GB, free: 6.891 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.csv. Warning: Get data of variable kMinU.u from file Buildings_11_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