Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001783/0.001784, allocations: 191.6 kB / 16.25 MB, free: 6.633 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.422/1.422, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.89/2.89, allocations: 482.3 MB / 0.7542 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 66.48 kB / 0.9232 GB, free: 29.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3023, allocations: 162.2 MB / 1.082 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003432/0.3058, allocations: 2.097 MB / 1.084 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001403/0.3072, allocations: 0.6936 MB / 1.084 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.3073, allocations: 11.94 kB / 1.084 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.3074, allocations: 23.73 kB / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.423e-05/0.3076, allocations: 27.78 kB / 1.084 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004533/0.308, allocations: 143.9 kB / 1.085 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.3085, allocations: 411.2 kB / 1.085 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004073/0.3089, allocations: 243.9 kB / 1.085 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.3091, allocations: 127.6 kB / 1.085 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.3093, allocations: 151.3 kB / 1.085 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.3093, allocations: 44 kB / 1.085 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.66e-05/0.3094, allocations: 48 kB / 1.086 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.3095, allocations: 87.73 kB / 1.086 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.3097, allocations: 151.3 kB / 1.086 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004415/0.3102, allocations: 415 kB / 1.086 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3102, allocations: 0 / 1.086 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3102, allocations: 0 / 1.086 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.848e-06/0.3102, allocations: 0 / 1.086 GB, free: 9.074 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001098/0.3113, allocations: 0.6029 MB / 1.087 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3113, allocations: 12.03 kB / 1.087 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.698e-05/0.3114, allocations: 32.56 kB / 1.087 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.3119, allocations: 271.8 kB / 1.087 GB, free: 8.07 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.3119, allocations: 29.03 kB / 1.087 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.197e-05/0.312, allocations: 32.38 kB / 1.087 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007906/0.3128, allocations: 337.2 kB / 1.087 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.3128, allocations: 7.938 kB / 1.087 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.3128, allocations: 12 kB / 1.087 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3128, allocations: 8 kB / 1.087 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006738/0.3135, allocations: 246 kB / 1.088 GB, free: 7.402 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.3151, allocations: 0.9667 MB / 1.089 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006592/0.3158, allocations: 266.8 kB / 1.089 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.316, allocations: 120.8 kB / 1.089 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.3161, allocations: 4 kB / 1.089 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005396/0.3166, allocations: 179.8 kB / 1.089 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=32): time 2.284e-06/0.3166, allocations: 0 / 1.089 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of matching and sorting (n=32): time 0.0008924/0.3175, allocations: 357.2 kB / 1.09 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.3176, allocations: 59.39 kB / 1.09 GB, free: 5.375 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.3178, allocations: 207.3 kB / 1.09 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.3179, allocations: 37.7 kB / 1.09 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.318, allocations: 144.6 kB / 1.09 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.323e-05/0.3181, allocations: 90.83 kB / 1.09 GB, free: 4.883 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002004/0.3183, allocations: 90.11 kB / 1.09 GB, free: 4.785 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3185, allocations: 338.8 kB / 1.09 GB, free: 4.445 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.3187, allocations: 112.8 kB / 1.091 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.3191, allocations: 165.4 kB / 1.091 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004863/0.3196, allocations: 266.6 kB / 1.091 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3196, allocations: 0 / 1.091 GB, free: 3.871 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007698/0.3203, allocations: 374.6 kB / 1.091 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.3204, allocations: 33.7 kB / 1.091 GB, free: 3.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.3204, allocations: 4 kB / 1.091 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3204, allocations: 0 / 1.091 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.3207, allocations: 39.91 kB / 1.091 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3207, allocations: 4 kB / 1.091 GB, free: 3.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.321, allocations: 63.77 kB / 1.091 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.3211, allocations: 12 kB / 1.091 GB, free: 3.332 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,wseCon.stateGraphRoot.activeSteps,wseCon.T2.t_start,$PRE.wseCon.T2.t_start,wseCon.T2.fire,wseCon.T2.enableFire,wseCon.T2.condition,wseCon.on.oldActive,$PRE.wseCon.on.oldActive,wseCon.on.newActive,$PRE.wseCon.on.newActive,wseCon.on.localActive,$PRE.wseCon.on.localActive,wseCon.on.active,wseCon.T1.t_start,$PRE.wseCon.T1.t_start,wseCon.T1.fire,wseCon.T1.enableFire,wseCon.T1.condition,wseCon.off.active,wseCon.off.oldActive,$PRE.wseCon.off.oldActive,wseCon.off.newActive,$PRE.wseCon.off.newActive,wseCon.off.localActive,$PRE.wseCon.off.localActive,wseCHWST.count,$PRE.wseCHWST.count,wseCHWST.T_start,$PRE.wseCHWST.T_start,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002004/0.3213, allocations: 185.6 kB / 1.092 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.942e-05/0.3213, allocations: 19.72 kB / 1.092 GB, free: 3.121 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006749/0.322, allocations: 296.4 kB / 1.092 GB, free: 2.828 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.322, allocations: 4 kB / 1.092 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.322, allocations: 0 / 1.092 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.322, allocations: 7.922 kB / 1.092 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.3233, allocations: 0.7402 MB / 1.093 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3233, allocations: 4 kB / 1.093 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.3235, allocations: 43.91 kB / 1.093 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3235, allocations: 0 / 1.093 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.3235, allocations: 4 kB / 1.093 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.3235, allocations: 7.938 kB / 1.093 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3235, allocations: 0 / 1.093 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005898/0.3241, allocations: 371 kB / 1.093 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.103e-05/0.3242, allocations: 100.9 kB / 1.093 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.3242, allocations: 7.984 kB / 1.093 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.3245, allocations: 31.91 kB / 1.093 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.3246, allocations: 39.95 kB / 1.093 GB, free: 1.387 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.3246, allocations: 11.98 kB / 1.093 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001145/0.3247, allocations: 131.8 kB / 1.093 GB, free: 1.246 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3247, allocations: 4 kB / 1.093 GB, free: 1.242 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003394/0.3251, allocations: 79.69 kB / 1.093 GB, free: 1.164 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0002028/0.3253, allocations: 117.4 kB / 1.094 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007794/0.3261, allocations: 347.3 kB / 1.094 GB, free: 0.6875 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3261, allocations: 4.125 kB / 1.094 GB, free: 0.6836 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002928/0.3264, allocations: 135.8 kB / 1.094 GB, free: 0.5508 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.3268, allocations: 35.91 kB / 1.094 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009696/0.3277, allocations: 0.5439 MB / 1.095 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.3282, allocations: 0.7603 MB / 1.095 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001153/0.3283, allocations: 26.28 kB / 1.095 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.043e-05/0.3284, allocations: 31.42 kB / 1.095 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.3284, allocations: 3.938 kB / 1.095 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of Templates: time 0.007312/0.3357, allocations: 3.002 MB / 1.098 GB, free: 12.11 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches