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.004955/0.004955, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001138/0.001138, allocations: 194.3 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.264/1.264, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.105/2.105, allocations: 390.3 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 71.89 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6493/0.6507, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002009/0.6527, allocations: 1.424 MB / 1.089 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0004681/0.6532, allocations: 393.5 kB / 1.089 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.005e-05/0.6532, allocations: 1.062 kB / 1.089 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.447e-05/0.6533, allocations: 4.5 kB / 1.089 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.55e-05/0.6533, allocations: 1.984 kB / 1.089 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000124/0.6534, allocations: 12.39 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.937e-05/0.6535, allocations: 29.06 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.929e-05/0.6536, allocations: 8.516 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.969e-05/0.6537, allocations: 10.41 kB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.704e-05/0.6537, allocations: 14.41 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.6537, allocations: 1.312 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.184e-06/0.6537, allocations: 2.312 kB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.518e-05/0.6538, allocations: 6.312 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.408e-05/0.6538, allocations: 10.86 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 7.04e-05/0.6539, allocations: 20.52 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.6539, allocations: 3.938 kB / 1.089 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6539, allocations: 4 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.868e-06/0.6539, allocations: 1.125 kB / 1.089 GB, free: 3.938 MB / 0.8575 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.0002839/0.6542, allocations: 336.4 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.6542, allocations: 9.219 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.26e-05/0.6542, allocations: 40.48 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.987e-05/0.6543, allocations: 2 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.082e-05/0.6543, allocations: 167.9 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-06/0.6543, allocations: 2.266 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-06/0.6544, allocations: 1.656 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.6545, allocations: 49.53 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.6545, allocations: 0 / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.6545, allocations: 5.281 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.6545, allocations: 0 / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.786e-05/0.6546, allocations: 19.98 kB / 1.09 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002212/0.6548, allocations: 255.1 kB / 1.09 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.49e-05/0.6549, allocations: 33.02 kB / 1.09 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.844e-05/0.6549, allocations: 19.67 kB / 1.09 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.655, allocations: 1.062 kB / 1.09 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.05e-05/0.655, allocations: 32.36 kB / 1.09 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.655, allocations: 0 / 1.09 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001981/0.6552, allocations: 60.31 kB / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.565e-05/0.6552, allocations: 56.05 kB / 1.09 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.796e-05/0.6553, allocations: 104.1 kB / 1.09 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.635e-06/0.6553, allocations: 30.83 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.256e-05/0.6553, allocations: 90.36 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.6553, allocations: 5.609 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.637e-05/0.6553, allocations: 20.58 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.38e-05/0.6554, allocations: 317.5 kB / 1.091 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.057e-05/0.6554, allocations: 10.73 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.05e-05/0.6555, allocations: 11.61 kB / 1.091 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.847e-05/0.6555, allocations: 25.16 kB / 1.091 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.6555, allocations: 0 / 1.091 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001014/0.6557, allocations: 54.16 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.6557, allocations: 5.281 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.6557, allocations: 0 / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.6557, allocations: 5.812 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.64e-05/0.6558, allocations: 5.547 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.6558, allocations: 0.6562 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.146e-05/0.6558, allocations: 2.875 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.6558, allocations: 0.7031 kB / 1.091 GB, free: 2.184 MB / 0.8575 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.929e-05/0.6559, allocations: 116.5 kB / 1.091 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.6559, allocations: 6 kB / 1.091 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.669e-05/0.6559, allocations: 5.016 kB / 1.091 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.6559, allocations: 4.688 kB / 1.091 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.6559, allocations: 5.125 kB / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.6559, allocations: 256 / 1.091 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001043/0.6561, allocations: 161 kB / 1.091 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.6561, allocations: 7.938 kB / 1.091 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.24e-05/0.6561, allocations: 6.453 kB / 1.091 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.6561, allocations: 0 / 1.091 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.6561, allocations: 1.578 kB / 1.091 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.6561, allocations: 0 / 1.091 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.6561, allocations: 0.6094 kB / 1.091 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.6563, allocations: 161.8 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.442e-05/0.6563, allocations: 78.59 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.6563, allocations: 1.656 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.172e-05/0.6564, allocations: 3 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.712e-05/0.6564, allocations: 2.375 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.6564, allocations: 0.5156 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.269e-05/0.6564, allocations: 86.41 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6564, allocations: 4.031 kB / 1.092 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002099/0.6566, allocations: 3.5 kB / 1.092 GB, free: 1.512 MB / 0.8575 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.0002952/0.6569, allocations: 0.6827 MB / 1.092 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.6571, allocations: 25.48 kB / 1.092 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.6571, allocations: 0.9375 kB / 1.092 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.954e-05/0.6571, allocations: 9.438 kB / 1.092 GB, free: 16.84 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/0.6573, allocations: 6.688 kB / 1.092 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.6577, allocations: 150 kB / 1.093 GB, free: 16.68 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.6579, allocations: 0.6765 MB / 1.093 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.378e-05/0.6579, allocations: 5.359 kB / 1.093 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/0.6579, allocations: 9.953 kB / 1.093 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of SimCode: time 2.91e-07/0.6579, allocations: 0 / 1.093 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0142/0.6721, allocations: 1.202 MB / 1.094 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.021/7.693, allocations: 8.688 kB / 1.094 GB, free: 15.63 MB / 0.8731 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