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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009109/0.0009114, allocations: 90.34 kB / 15.06 MB, free: 1.078 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.001207/0.001207, allocations: 176.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.943/2.943, allocations: 462.6 MB / 0.736 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005198/0.0005199, allocations: 15.45 kB / 0.9021 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4212, allocations: 159.6 MB / 1.058 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.001755/0.423, allocations: 1.143 MB / 1.059 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006375/0.4237, allocations: 379.3 kB / 1.059 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.291e-05/0.4237, allocations: 0 / 1.059 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.4237, allocations: 3.938 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.099e-05/0.4238, allocations: 0 / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.424, allocations: 8 kB / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.37e-05/0.4241, allocations: 23.86 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.454e-05/0.4242, allocations: 0 / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.824e-05/0.4243, allocations: 23.97 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.713e-05/0.4243, allocations: 7.922 kB / 1.06 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.4243, allocations: 8 kB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-06/0.4244, allocations: 0 / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.122e-05/0.4244, allocations: 0 / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.541e-05/0.4244, allocations: 29.7 kB / 1.06 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.18e-05/0.4245, allocations: 11.97 kB / 1.06 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4245, allocations: 11.88 kB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.4245, allocations: 0 / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.4245, allocations: 0 / 1.06 GB, free: 3.609 MB / 0.8106 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.0004168/0.425, allocations: 331.6 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.425, allocations: 12.03 kB / 1.06 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.425, allocations: 3.906 kB / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.4252, allocations: 163.1 kB / 1.06 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.4252, allocations: 0 / 1.06 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.4252, allocations: 3.953 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/0.4254, allocations: 53.61 kB / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.4254, allocations: 0 / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.4254, allocations: 0 / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.4254, allocations: 0 / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.783e-05/0.4255, allocations: 27.98 kB / 1.06 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000362/0.4259, allocations: 256.9 kB / 1.06 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.961e-05/0.426, allocations: 34.56 kB / 1.06 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.133e-05/0.426, allocations: 16.92 kB / 1.06 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.426, allocations: 0 / 1.06 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.4261, allocations: 38.56 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.4261, allocations: 0 / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002432/0.4263, allocations: 73.61 kB / 1.061 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.4264, allocations: 51.41 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.64e-05/0.4265, allocations: 105.8 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.4265, allocations: 25.7 kB / 1.061 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.269e-05/0.4266, allocations: 84.14 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.4266, allocations: 11.84 kB / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.4266, allocations: 0 / 1.061 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4267, allocations: 318.8 kB / 1.061 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.99e-05/0.4268, allocations: 12.03 kB / 1.061 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.068e-05/0.4268, allocations: 11.98 kB / 1.061 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.166e-05/0.4268, allocations: 11.95 kB / 1.061 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.4268, allocations: 4 kB / 1.061 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001064/0.427, allocations: 53.72 kB / 1.061 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.427, allocations: 13.72 kB / 1.061 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.427, allocations: 3.984 kB / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.427, allocations: 0 / 1.061 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.535e-05/0.4271, allocations: 4 kB / 1.061 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.4271, allocations: 0 / 1.061 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.173e-05/0.4272, allocations: 4 kB / 1.061 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.4272, allocations: 0 / 1.061 GB, free: 1.699 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.078e-05/0.4272, allocations: 117.8 kB / 1.061 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.114e-05/0.4273, allocations: 4 kB / 1.061 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.002e-05/0.4273, allocations: 11.47 kB / 1.061 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.4273, allocations: 0 / 1.061 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4273, allocations: 0 / 1.061 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.4273, allocations: 7.938 kB / 1.061 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.4275, allocations: 153.7 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.4275, allocations: 7.938 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.4275, allocations: 7.984 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.4276, allocations: 0 / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.4276, allocations: 0 / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4276, allocations: 8 kB / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.4276, allocations: 0 / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/0.4278, allocations: 159.4 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.519e-05/0.4278, allocations: 81.06 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.4278, allocations: 0 / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.892e-05/0.4279, allocations: 8.031 kB / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.619e-05/0.4279, allocations: 0 / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.4279, allocations: 256 / 1.062 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.279e-05/0.428, allocations: 95.27 kB / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.428, allocations: 0 / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002043/0.4282, allocations: 0 / 1.062 GB, free: 0.957 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.903e-05/0.4283, allocations: 99.25 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001356/0.4284, allocations: 31.92 kB / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4284, allocations: 0 / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.376e-05/0.4285, allocations: 11.98 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.4287, allocations: 8.938 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002758/0.429, allocations: 124.8 kB / 1.062 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.4293, allocations: 0.677 MB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.545e-05/0.4293, allocations: 4 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.072e-05/0.4293, allocations: 7.438 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.4294, allocations: 3.938 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of Templates: time 0.002292/0.4317, allocations: 272.1 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile (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 & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches