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.001455/0.001455, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 196.1 kB / 16.79 MB, free: 6.809 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.419/1.419, allocations: 222.9 MB / 240.5 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.691/2.691, allocations: 461.8 MB / 0.7348 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 71.06 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2851, allocations: 157.4 MB / 1.053 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.00405/0.2891, allocations: 2.106 MB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.2905, allocations: 0.709 MB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.2908, allocations: 7.938 kB / 1.056 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.291, allocations: 19.8 kB / 1.056 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.2911, allocations: 27.78 kB / 1.056 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004793/0.2916, allocations: 147.9 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005014/0.2921, allocations: 363.2 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003898/0.2925, allocations: 212.3 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.2927, allocations: 119.6 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.2929, allocations: 131.4 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.74e-05/0.293, allocations: 20 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.208e-05/0.2931, allocations: 31.94 kB / 1.057 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.218e-05/0.2932, allocations: 63.75 kB / 1.057 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.2933, allocations: 135.3 kB / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003218/0.2937, allocations: 315.6 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.2937, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2937, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.2937, allocations: 0 / 1.057 GB, free: 3.984 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.001091/0.2948, allocations: 0.603 MB / 1.058 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.2948, allocations: 11.97 kB / 1.058 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.933e-05/0.2949, allocations: 36.56 kB / 1.058 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.2953, allocations: 274 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.129e-05/0.2953, allocations: 29.03 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/0.2954, allocations: 32.38 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.2961, allocations: 337.2 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.2961, allocations: 0 / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.2961, allocations: 15.94 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.2962, allocations: 8 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006268/0.2968, allocations: 250.1 kB / 1.059 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.2984, allocations: 0.959 MB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006454/0.2991, allocations: 272.3 kB / 1.06 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.2994, allocations: 120.8 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.2994, allocations: 8 kB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004567/0.2999, allocations: 183.2 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=32): time 1.653e-06/0.2999, allocations: 0 / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of matching and sorting (n=32): time 0.0008175/0.3007, allocations: 349.8 kB / 1.06 GB, free: 356 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.3008, allocations: 63.39 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.301, allocations: 203.3 kB / 1.061 GB, free: 64 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.301, allocations: 37.7 kB / 1.061 GB, free: 20 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.3012, allocations: 152.5 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.245e-05/0.3012, allocations: 78.94 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.3014, allocations: 90.11 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3015, allocations: 334.8 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.3018, allocations: 108.8 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003124/0.3021, allocations: 173.5 kB / 1.062 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004916/0.3026, allocations: 258.6 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3026, allocations: 0 / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007235/0.3034, allocations: 370.6 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.205e-05/0.3034, allocations: 37.69 kB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3035, allocations: 8.156 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.3035, allocations: 4 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.3037, allocations: 43.91 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.3037, allocations: 4 kB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002716/0.304, allocations: 55.56 kB / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.304, allocations: 12 kB / 1.062 GB, free: 14.25 MB / 0.8262 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.0002013/0.3042, allocations: 185.6 kB / 1.063 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.781e-05/0.3043, allocations: 15.81 kB / 1.063 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006249/0.3049, allocations: 296.3 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.3049, allocations: 4 kB / 1.063 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3049, allocations: 4 kB / 1.063 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.305, allocations: 0 / 1.063 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.3061, allocations: 0.7596 MB / 1.064 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.3061, allocations: 0 / 1.064 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.3063, allocations: 31.86 kB / 1.064 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.3063, allocations: 7.984 kB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.3063, allocations: 8 kB / 1.064 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.3063, allocations: 7.938 kB / 1.064 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3063, allocations: 0 / 1.064 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.3069, allocations: 363.2 kB / 1.064 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.321e-05/0.307, allocations: 100.7 kB / 1.064 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/0.3071, allocations: 8 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.3073, allocations: 47.83 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.3074, allocations: 35.95 kB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.3075, allocations: 8 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001097/0.3076, allocations: 135.7 kB / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3076, allocations: 0 / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003389/0.3079, allocations: 75.78 kB / 1.064 GB, free: 12.07 MB / 0.8262 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.0001867/0.3081, allocations: 121.4 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006775/0.3088, allocations: 335 kB / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3088, allocations: 0 / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.3091, allocations: 132.2 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.3095, allocations: 35.92 kB / 1.065 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009528/0.3104, allocations: 0.565 MB / 1.065 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.3108, allocations: 0.7603 MB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.307e-05/0.3109, allocations: 27.44 kB / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3109, allocations: 0 / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of Templates: time 0.005932/0.3168, allocations: 3.484 MB / 1.07 GB, free: 6.555 MB / 0.8262 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/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