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 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.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.001075/0.001075, allocations: 100.2 kB / 16.35 MB, free: 5.824 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.001148/0.001148, allocations: 193.3 kB / 17.29 MB, free: 5.48 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.501/2.501, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 68.03 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.296, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.003373/0.2994, allocations: 2.016 MB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.3006, allocations: 0.7089 MB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.3008, allocations: 4 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.3009, allocations: 35.59 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.3011, allocations: 39.59 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004695/0.3015, allocations: 151.8 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004545/0.302, allocations: 411.3 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003725/0.3024, allocations: 243.8 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.3026, allocations: 135.6 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.3028, allocations: 151.3 kB / 1.031 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.919e-05/0.3028, allocations: 40 kB / 1.031 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.3029, allocations: 51.98 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.937e-05/0.303, allocations: 79.77 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.3032, allocations: 155.3 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.3036, allocations: 430.5 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3036, allocations: 0 / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3036, allocations: 0 / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.107e-05/0.3036, allocations: 0 / 1.031 GB, free: 13.39 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009616/0.3046, allocations: 0.6029 MB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3046, allocations: 11.97 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.881e-05/0.3047, allocations: 28.66 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.3051, allocations: 277.2 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.3051, allocations: 29.03 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.3052, allocations: 32.38 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006539/0.3058, allocations: 341.1 kB / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3059, allocations: 0 / 1.033 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.3059, allocations: 12 kB / 1.033 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.3059, allocations: 8 kB / 1.033 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005606/0.3065, allocations: 250.1 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.3079, allocations: 0.9474 MB / 1.034 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006099/0.3085, allocations: 266.8 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.3088, allocations: 121.3 kB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.3088, allocations: 4 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003638/0.3092, allocations: 187.9 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=32): time 1.833e-06/0.3092, allocations: 0 / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=32): time 0.0008073/0.31, allocations: 345.9 kB / 1.035 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.3101, allocations: 71.33 kB / 1.035 GB, free: 9.711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.3103, allocations: 199.8 kB / 1.035 GB, free: 9.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.3103, allocations: 41.7 kB / 1.035 GB, free: 9.453 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.587e-05/0.3104, allocations: 156.5 kB / 1.035 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.854e-05/0.3105, allocations: 74.95 kB / 1.035 GB, free: 9.223 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.3106, allocations: 94.11 kB / 1.035 GB, free: 9.125 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3107, allocations: 334.8 kB / 1.035 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.311, allocations: 112.8 kB / 1.036 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.3113, allocations: 165.5 kB / 1.036 GB, free: 8.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004565/0.3118, allocations: 251.5 kB / 1.036 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3118, allocations: 0 / 1.036 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000673/0.3125, allocations: 382.4 kB / 1.036 GB, free: 7.844 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.3125, allocations: 37.69 kB / 1.036 GB, free: 7.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3125, allocations: 4 kB / 1.036 GB, free: 7.797 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3125, allocations: 7.938 kB / 1.036 GB, free: 7.789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.3127, allocations: 43.91 kB / 1.036 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.3128, allocations: 7.938 kB / 1.036 GB, free: 7.738 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.313, allocations: 51.81 kB / 1.037 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.3131, allocations: 16 kB / 1.037 GB, free: 7.672 MB / 0.8106 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.localCondition,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.localCondition,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.0001711/0.3132, allocations: 173.7 kB / 1.037 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.3133, allocations: 19.81 kB / 1.037 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006241/0.3139, allocations: 299.2 kB / 1.037 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.3139, allocations: 7.938 kB / 1.037 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3139, allocations: 0 / 1.037 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.314, allocations: 3.984 kB / 1.037 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.315, allocations: 0.7458 MB / 1.038 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.315, allocations: 0 / 1.038 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.3152, allocations: 31.98 kB / 1.038 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.3152, allocations: 0 / 1.038 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.3152, allocations: 11.98 kB / 1.038 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.3152, allocations: 3.938 kB / 1.038 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3152, allocations: 0 / 1.038 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005616/0.3158, allocations: 380.3 kB / 1.038 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.3159, allocations: 104.8 kB / 1.038 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.3159, allocations: 4 kB / 1.038 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.3161, allocations: 39.89 kB / 1.038 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.3163, allocations: 39.95 kB / 1.038 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.3163, allocations: 4 kB / 1.038 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.364e-05/0.3164, allocations: 131.5 kB / 1.038 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3164, allocations: 4 kB / 1.038 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003301/0.3167, allocations: 71.83 kB / 1.039 GB, free: 5.512 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: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.active,wseCon.off.active,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.localActive,wseCon.off.newActive,wseCon.off.oldActive,wseCon.T1.localCondition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.localActive,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.localCondition,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.0001584/0.3169, allocations: 121.4 kB / 1.039 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006476/0.3176, allocations: 335.9 kB / 1.039 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3176, allocations: 320 / 1.039 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003026/0.3179, allocations: 147.8 kB / 1.039 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.3182, allocations: 27.98 kB / 1.039 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008364/0.3191, allocations: 457 kB / 1.04 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.3194, allocations: 0.7642 MB / 1.04 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001113/0.3195, allocations: 30.28 kB / 1.04 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.932e-05/0.3196, allocations: 27.38 kB / 1.04 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.3196, allocations: 4 kB / 1.04 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of Templates: time 0.006718/0.3263, allocations: 3.119 MB / 1.043 GB, free: 464 kB / 0.8106 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 -s gbode -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/jenkins1/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